-
Notifications
You must be signed in to change notification settings - Fork 0
fix(MAJORLEA-002-2): 8 review findings across 7 files #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
0262acb
5d937b1
89ba720
7f69ac2
7779638
4b47950
5b903bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,11 +4,15 @@ | |
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class City { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ City model missing @NoArgsConstructor and @AllArgsConstructor Lombok annotations Added π€ Prompt for AI agentsfix confidence: π’ 95 high β react π/π to teach the reviewer |
||
| private String id; | ||
|
|
@@ -24,4 +28,4 @@ public class City { | |
| private State state; | ||
| private Set<Region> regions; | ||
| private SoccerTeam nearestTeam; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,11 +5,15 @@ | |
| import java.util.List; | ||
| import java.util.Map; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Data | ||
| @Builder(toBuilder = true) | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public class Contributor { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ Contributor model missing @NoArgsConstructor and @AllArgsConstructor β breaks Jackson deserialization and @builder contract Added π€ Prompt for AI agentsfix confidence: π’ 95 high β react π/π to teach the reviewer |
||
| public enum Role { | ||
| CONTRIBUTOR, | ||
|
|
@@ -46,16 +50,19 @@ public enum Role { | |
|
|
||
| public Map<String, Integer> getGithubStats() { | ||
| if (type == Role.CONTRIBUTOR) { | ||
| // For contributors, convert individual fields to map format | ||
| Map<String, Integer> stats = new HashMap<>(); | ||
| stats.put("score", score); | ||
| stats.put("totalCommits", totalCommits); | ||
| stats.put("javaRepos", javaRepos); | ||
| stats.put("starsReceived", starsReceived); | ||
| stats.put("forksReceived", forksReceived); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π Contributor.getGithubStats() returns a new HashMap on every call for CONTRIBUTOR type β breaks equals/hashCode contract and wastes allocations Modified π€ Prompt for AI agentsfix confidence: π‘ 72 medium β react π/π to teach the reviewer |
||
| stats.put("starsGiven", starsGiven); | ||
| stats.put("forksGiven", forksGiven); | ||
| return stats; | ||
| // For contributors, convert individual fields to map format and cache in field | ||
| if (githubStats == null) { | ||
| Map<String, Integer> stats = new HashMap<>(); | ||
| stats.put("score", score); | ||
| stats.put("totalCommits", totalCommits); | ||
| stats.put("javaRepos", javaRepos); | ||
| stats.put("starsReceived", starsReceived); | ||
| stats.put("forksReceived", forksReceived); | ||
| stats.put("starsGiven", starsGiven); | ||
| stats.put("forksGiven", forksGiven); | ||
| githubStats = stats; | ||
| } | ||
| return githubStats; | ||
| } | ||
| return githubStats; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,17 @@ | ||
| package cx.flamingo.analysis.model; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Data | ||
| @Builder | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ JobOpening model class missing @NoArgsConstructor and @AllArgsConstructor Lombok annotations Added π€ Prompt for AI agentsfix confidence: π’ 98 high β react π/π to teach the reviewer |
||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public class JobOpening { | ||
| private String id; | ||
| private String title; | ||
| private String location; | ||
| private String url; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,15 +2,19 @@ | |
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Data | ||
| @Builder | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ Language model missing @NoArgsConstructor and @AllArgsConstructor Lombok annotations Added π€ Prompt for AI agentsfix confidence: π’ 97 high β react π/π to teach the reviewer |
||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class Language { | ||
| private String id; | ||
| private String name; | ||
| private String displayName; | ||
| private String iconUrl; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,9 +2,15 @@ | |
|
|
||
| import java.util.Set; | ||
|
|
||
| import lombok.Value; | ||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Value | ||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public class Region { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ Region model uses @value (immutable) instead of the required Lombok quartet Replaced π€ Prompt for AI agentsfix confidence: π‘ 85 medium β react π/π to teach the reviewer |
||
| String id; | ||
| String name; // Internal name (e.g., "new-england") | ||
|
|
@@ -16,7 +22,10 @@ public class Region { | |
| Set<State> states; | ||
| Set<City> cities; | ||
|
|
||
| @Value | ||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| public static class GeoCoordinates { | ||
| double latitude; | ||
| double longitude; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,11 +4,15 @@ | |
|
|
||
| import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
|
||
| import lombok.AllArgsConstructor; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.NoArgsConstructor; | ||
|
|
||
| @Data | ||
| @Builder | ||
| @NoArgsConstructor | ||
| @AllArgsConstructor | ||
| @JsonInclude(JsonInclude.Include.NON_NULL) | ||
| public class State { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ State model missing @NoArgsConstructor and @AllArgsConstructor Lombok annotations Added π€ Prompt for AI agentsfix confidence: π’ 97 high β react π/π to teach the reviewer |
||
| private String id; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
𦩠π΄ ApiResponse model missing @NoArgsConstructor and @AllArgsConstructor Lombok annotations
Added
@NoArgsConstructorand@AllArgsConstructorannotations to theApiResponse<T>class declaration (lines 10-11), and added the corresponding imports forlombok.AllArgsConstructorandlombok.NoArgsConstructor(lines 3 and 6). When@Builderis combined with@AllArgsConstructor, Lombok's builder uses the all-args constructor internally, so both annotations work together correctly.@NoArgsConstructorenables Jackson deserialization without requiring a custom deserializer. No other code was changed.π€ Prompt for AI agents
fix confidence: π’ 95 high β react π/π to teach the reviewer