From f02e428a5e22a6c9ba9a3786a60fa6a825d1ae67 Mon Sep 17 00:00:00 2001 From: gloNelson Date: Thu, 22 Apr 2021 16:57:05 +0800 Subject: [PATCH] fix issue #1523 --- CHANGELOG.md | 1 + docs/locale/ja/LC_MESSAGES/bugDescriptions.po | 23 +++++++++++++++---- spotbugs/etc/messages.xml | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13d5fc0114c..c3e2abde4ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2. - Should issue warning for SecureRandom object created and used only once ([#1464](https://github.com/spotbugs/spotbugs/issues/1464)) - False positive OBL_UNSATIFIED_OBLIGATION with try with resources ([#79](https://github.com/spotbugs/spotbugs/issues/79)) - `SA_LOCAL_SELF_COMPUTATION` bug ([#1472](https://github.com/spotbugs/spotbugs/issues/1472)) +- Inconsistent bug description on `EQ_COMPARING_CLASS_NAMES` ([#1523](https://github.com/spotbugs/spotbugs/issues/1523)) ## 4.2.2 - 2021-03-03 diff --git a/docs/locale/ja/LC_MESSAGES/bugDescriptions.po b/docs/locale/ja/LC_MESSAGES/bugDescriptions.po index 93e8fe7a043..e022cfab892 100644 --- a/docs/locale/ja/LC_MESSAGES/bugDescriptions.po +++ b/docs/locale/ja/LC_MESSAGES/bugDescriptions.po @@ -8,14 +8,14 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2021-03-23 17:21+0000\n" +"POT-Creation-Date: 2021-04-22 08:54+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.8.0\n" +"Generated-By: Babel 2.9.0\n" #: ../../bugDescriptions.rst:2 msgid "Bug descriptions" @@ -2374,8 +2374,8 @@ msgstr "" #: ../../generated/bugDescriptionList.inc:2103 msgid "" -"

This method checks to see if two objects are the same class by " -"checking to see if the names\n" +"

This class defines an equals method that checks to see if two " +"objects are the same class by checking to see if the names\n" "of their classes are equal. You can have different classes with the same " "name if they are loaded by\n" "different class loaders. Just check to see if the class objects are the " @@ -12543,3 +12543,18 @@ msgstr "" #~ "

" #~ msgstr "" +#~ msgid "" +#~ "

This method checks to see" +#~ " if two objects are the same " +#~ "class by checking to see if the" +#~ " names\n" +#~ "of their classes are equal. You " +#~ "can have different classes with the " +#~ "same name if they are loaded by" +#~ "\n" +#~ "different class loaders. Just check to" +#~ " see if the class objects are " +#~ "the same.\n" +#~ "

" +#~ msgstr "" + diff --git a/spotbugs/etc/messages.xml b/spotbugs/etc/messages.xml index bdde9a3b818..b1e79d07b9a 100644 --- a/spotbugs/etc/messages.xml +++ b/spotbugs/etc/messages.xml @@ -3073,7 +3073,7 @@ this code, but it is worth reviewing. {1} compares class names rather than class objects
This method checks to see if two objects are the same class by checking to see if the names +

This class defines an equals method that checks to see if two objects are the same class by checking to see if the names of their classes are equal. You can have different classes with the same name if they are loaded by different class loaders. Just check to see if the class objects are the same.