Skip to content

Commit b514f63

Browse files
SONARJAVA-5927 Change the compliant example for S1118 to an empty constructor with a comment
1 parent 91dd9be commit b514f63

File tree

1 file changed

+1
-1
lines changed
  • sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java

1 file changed

+1
-1
lines changed

sonar-java-plugin/src/main/resources/org/sonar/l10n/java/rules/java/S1118.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h4>Compliant solution</h4>
2323
class StringUtils { // Compliant
2424

2525
private StringUtils() {
26-
throw new IllegalStateException("Utility class");
26+
/* This utility class should not be instantiated */
2727
}
2828

2929
public static String concatenate(String s1, String s2) {

0 commit comments

Comments
 (0)