From 889cbc869429e89715f20ff824d702e32a5f48be Mon Sep 17 00:00:00 2001 From: Dorian Burihabwa Date: Fri, 14 Apr 2023 18:48:51 +0200 Subject: [PATCH] Add missing annotation on overriden method paramater --- .../java/org/sonar/java/checks/design/ClassCouplingCheck.java | 2 +- .../org/sonar/java/checks/design/ClassImportCouplingCheck.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-checks/src/main/java/org/sonar/java/checks/design/ClassCouplingCheck.java b/java-checks/src/main/java/org/sonar/java/checks/design/ClassCouplingCheck.java index 1c541914b06..b515b0be6d5 100644 --- a/java-checks/src/main/java/org/sonar/java/checks/design/ClassCouplingCheck.java +++ b/java-checks/src/main/java/org/sonar/java/checks/design/ClassCouplingCheck.java @@ -63,7 +63,7 @@ public void visitClass(ClassTree tree) { } @Override - public void checkTypes(@Nullable Tree type, Set types) { + public void checkTypes(@Nullable Tree type, @Nullable Set types) { if (type == null || types == null) { return; } diff --git a/java-checks/src/main/java/org/sonar/java/checks/design/ClassImportCouplingCheck.java b/java-checks/src/main/java/org/sonar/java/checks/design/ClassImportCouplingCheck.java index 75f1c9f33ab..3bbb97e5c55 100644 --- a/java-checks/src/main/java/org/sonar/java/checks/design/ClassImportCouplingCheck.java +++ b/java-checks/src/main/java/org/sonar/java/checks/design/ClassImportCouplingCheck.java @@ -109,7 +109,7 @@ private List getSecondaryLocations() { } @Override - public void checkTypes(@Nullable Tree type, Set types) { + public void checkTypes(@Nullable Tree type, @Nullable Set types) { if (type == null || types == null) { return; }