FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 1.2.0

Threshold is Low

Effort is Default

Summary

Classes Bugs Errors Missing Classes
53 24 0 0

Files

Class Bugs
org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateJavascriptLocalesMojo 8
org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo 10
org.apache.myfaces.buildtools.maven2.plugin.i18n.uixtools.JSLocaleElementsGenerator 6

org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateJavascriptLocalesMojo

Bug Category Details Line
Method org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateJavascriptLocalesMojo.execute() uses Collection.toArray() with zero-length array argument PERFORMANCE ITA_INEFFICIENT_TO_ARRAY 86
Read of unwritten field project in org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateJavascriptLocalesMojo.addResourceRoot(String) CORRECTNESS NP_UNWRITTEN_FIELD 105
Read of unwritten field targetDirectory in org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateJavascriptLocalesMojo.execute() CORRECTNESS NP_UNWRITTEN_FIELD 49
Private method org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateJavascriptLocalesMojo.getLocaleStrings() is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 113-126
Unwritten field: org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateJavascriptLocalesMojo.locale CORRECTNESS UWF_UNWRITTEN_FIELD 113
Unwritten field: org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateJavascriptLocalesMojo.project CORRECTNESS UWF_UNWRITTEN_FIELD 105
Unwritten field: org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateJavascriptLocalesMojo.targetDirectory CORRECTNESS UWF_UNWRITTEN_FIELD 49
Unwritten field: org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateJavascriptLocalesMojo.force CORRECTNESS UWF_UNWRITTEN_FIELD 74

org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo

Bug Category Details Line
Method org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo.execute() uses Collection.toArray() with zero-length array argument PERFORMANCE ITA_INEFFICIENT_TO_ARRAY 84
Read of unwritten field project in org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo.execute() CORRECTNESS NP_UNWRITTEN_FIELD 48
Read of unwritten field targetDirectory in org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo.execute() CORRECTNESS NP_UNWRITTEN_FIELD 48
Read of unwritten field targetDirectory in org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo.execute() CORRECTNESS NP_UNWRITTEN_FIELD 76
Read of unwritten field targetDirectory in org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo.execute() CORRECTNESS NP_UNWRITTEN_FIELD 77
Exception is caught when Exception is not thrown in org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo.execute() STYLE REC_CATCH_EXCEPTION 92
Unwritten field: org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo.locale CORRECTNESS UWF_UNWRITTEN_FIELD 80
Unwritten field: org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo.project CORRECTNESS UWF_UNWRITTEN_FIELD 48
Unwritten field: org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo.targetDirectory CORRECTNESS UWF_UNWRITTEN_FIELD 48
Unwritten field: org.apache.myfaces.buildtools.maven2.plugin.i18n.GenerateLocaleElementsMojo.force CORRECTNESS UWF_UNWRITTEN_FIELD 53

org.apache.myfaces.buildtools.maven2.plugin.i18n.uixtools.JSLocaleElementsGenerator

Bug Category Details Line
Use of non-localized String.toUpperCase() or String.toLowerCase I18N DM_CONVERT_CASE 104
org.apache.myfaces.buildtools.maven2.plugin.i18n.uixtools.JSLocaleElementsGenerator._generateJSLocaleElements(String, String, Locale, String, boolean, boolean, boolean, boolean, boolean, String) may fail to close stream on exception BAD_PRACTICE OS_OPEN_STREAM_EXCEPTION_PATH 323
org.apache.myfaces.buildtools.maven2.plugin.i18n.uixtools.JSLocaleElementsGenerator.main(String[]) ignores return value of java.io.File.createNewFile() CORRECTNESS RV_RETURN_VALUE_IGNORED 161
Method org.apache.myfaces.buildtools.maven2.plugin.i18n.uixtools.JSLocaleElementsGenerator._getHexString(int, int) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 691
Private method org.apache.myfaces.buildtools.maven2.plugin.i18n.uixtools.JSLocaleElementsGenerator._getLocaleSuffix(Locale) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 736-738
Private method org.apache.myfaces.buildtools.maven2.plugin.i18n.uixtools.JSLocaleElementsGenerator._writeJavaBundle(Writer, Locale, String) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 337-381