diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1607_java.html b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1607_java.html index e2d782fc974..46ed9df247d 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1607_java.html +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1607_java.html @@ -28,6 +28,4 @@
None
diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1607_java.json b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1607_java.json index be32285115c..e1c6919d9ff 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1607_java.json +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S1607_java.json @@ -9,6 +9,8 @@ "tags": [ "junit", "tests", + "bad-practice", + "confusing", "suspicious" ], "defaultSeverity": "Major", diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S2589_java.html b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S2589_java.html index ea6c9b98acc..af1be60862b 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S2589_java.html +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S2589_java.html @@ -32,12 +32,7 @@Assertions of dissimilar types always fail, and negative assertions always pass. At best, negative assertions are useless. At worst, the developer -loses time trying to fix his code logic before noticing wrong assertions.
+Assertions comparing incompatible types always fail, and negative assertions always pass. At best, negative assertions are useless. At worst, the +developer loses time trying to fix his code logic before noticing wrong assertions.
Dissimilar types are:
diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5845_java.json b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5845_java.json index d6740e342cc..91392fab0c6 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5845_java.json +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5845_java.json @@ -1,5 +1,5 @@ { - "title": "Assertions of dissimilar types should not be made", + "title": "Assertions comparing incompatible types should not be made", "type": "BUG", "status": "ready", "remediation": { diff --git a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5846_java.html b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5846_java.html index 1e75f1b40ac..aa74b017349 100644 --- a/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5846_java.html +++ b/java-checks/src/main/resources/org/sonar/l10n/java/rules/java/S5846_java.html @@ -39,6 +39,6 @@diff --git a/sonarpedia.json b/sonarpedia.json index c8cbc8f2365..6a27e055aa2 100644 --- a/sonarpedia.json +++ b/sonarpedia.json @@ -3,7 +3,7 @@ "languages": [ "JAVA" ], - "latest-update": "2020-07-15T12:00:39.489532200Z", + "latest-update": "2020-08-27T14:58:46.476813600Z", "options": { "no-language-in-filenames": false, "preserve-filenames": falseCompliant Solution
// ... System.out.println(containsEmptyLines("a\n\nb")); // correctly prints 'true' -System.out.println(containsEmptyLines("")); // also correctly prints 'false' +System.out.println(containsEmptyLines("")); // also correctly prints 'true'