Skip to content

Commit 889cbc8

Browse files
Add missing annotation on overriden method paramater
1 parent acc2129 commit 889cbc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java-checks/src/main/java/org/sonar/java/checks/design/ClassCouplingCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void visitClass(ClassTree tree) {
6363
}
6464

6565
@Override
66-
public void checkTypes(@Nullable Tree type, Set<String> types) {
66+
public void checkTypes(@Nullable Tree type, @Nullable Set<String> types) {
6767
if (type == null || types == null) {
6868
return;
6969
}

java-checks/src/main/java/org/sonar/java/checks/design/ClassImportCouplingCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private List<JavaFileScannerContext.Location> getSecondaryLocations() {
109109
}
110110

111111
@Override
112-
public void checkTypes(@Nullable Tree type, Set<String> types) {
112+
public void checkTypes(@Nullable Tree type, @Nullable Set<String> types) {
113113
if (type == null || types == null) {
114114
return;
115115
}

0 commit comments

Comments
 (0)