-
Notifications
You must be signed in to change notification settings - Fork 34
refactoring/536_Resolve_Sonar_cloud_findings #539
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
cb20e2c
73734c9
59b9901
2e8ec57
b8cf02f
d2b714b
f8fb51e
b125ad5
08b616a
ed28a94
af6f33e
710fd99
07636a5
22ef28e
c486d37
f3ed0b8
c34e8c8
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 |
|---|---|---|
|
|
@@ -12,4 +12,4 @@ public interface DirectoryService | |
| * @return current directory | ||
| */ | ||
| String getCurrent(); | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,7 +187,7 @@ private void cacheOverCoveredArtifactType(final LinkedSpecificationItem overcove | |
| */ | ||
| public Map<LinkStatus, List<LinkedSpecificationItem>> getLinks() | ||
| { | ||
| return this.links; | ||
| return new EnumMap<>(this.links); | ||
|
Contributor
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. Make immutable
Collaborator
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. Done.
Collaborator
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. This one is tricky, since there is a bidirectional linking mechanism in the way. |
||
| } | ||
|
|
||
| /** | ||
|
|
@@ -249,7 +249,7 @@ public List<String> getNeedsArtifactTypes() | |
| */ | ||
| public Set<String> getCoveredArtifactTypes() | ||
| { | ||
| return this.coveredArtifactTypes; | ||
| return Collections.unmodifiableSet(this.coveredArtifactTypes); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -259,7 +259,7 @@ public Set<String> getCoveredArtifactTypes() | |
| */ | ||
| public Set<String> getCoveredApprovedArtifactTypes() | ||
| { | ||
| return this.coveredArtifactTypesFromApprovedItems; | ||
| return Collections.unmodifiableSet(this.coveredArtifactTypesFromApprovedItems); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -270,7 +270,7 @@ public Set<String> getCoveredApprovedArtifactTypes() | |
| public Set<String> getOverCoveredArtifactTypes() | ||
| { | ||
|
|
||
| return this.overCoveredArtifactTypes; | ||
| return Collections.unmodifiableSet(this.overCoveredArtifactTypes); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -416,9 +416,9 @@ private List<LinkedSpecificationItem> getIncomingItems() | |
| public boolean isDefect() | ||
| { | ||
| return hasDuplicates() // | ||
| || (getStatus() != ItemStatus.REJECTED) // | ||
| || ((getStatus() != ItemStatus.REJECTED) // | ||
| && (hasBadLinks() | ||
| || (getDeepCoverageStatus() != DeepCoverageStatus.COVERED)); | ||
| || (getDeepCoverageStatus() != DeepCoverageStatus.COVERED))); | ||
| } | ||
|
|
||
| /** | ||
|
|
||
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.
Only mentioned once: check if a Test with equalsverifier exists
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.
Junie says: