-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve order of added comments and tags
- Loading branch information
1 parent
3038944
commit 7eaa632
Showing
5 changed files
with
35 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package analyzer; | ||
|
||
import java.util.Set; | ||
import java.util.List; | ||
|
||
public record Analysis(Set<Comment> comments, String summary) { | ||
public record Analysis(List<Comment> comments, String summary) { | ||
public Analysis { | ||
comments = Set.copyOf(comments); | ||
comments = List.copyOf(comments); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package analyzer; | ||
|
||
import java.util.Set; | ||
import java.util.List; | ||
|
||
public record Tags(Set<String> tags) { | ||
public record Tags(List<String> tags) { | ||
public Tags { | ||
tags = Set.copyOf(tags); | ||
tags = List.copyOf(tags); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{"comments": [ | ||
{"comment": "java.hamming.should_use_string_is_empty"}, | ||
{"comment": "java.hamming.calculate_distance_in_constructor"} | ||
{"comment": "java.hamming.calculate_distance_in_constructor"}, | ||
{"comment": "java.hamming.should_use_string_is_empty"} | ||
]} |