Inspectopedia Help

Internationalization

'SimpleDateFormat' without locale   New in this release

Reports instantiations of java.util.SimpleDateFormat or java.time.format.DateTimeFormatter that do not specify a java.util.Locale.

Absolute alignment in AWT/Swing code   New in this release

Reports usages of absolute alignment constants from AWT and Swing.

Call to 'Date.toString()'   New in this release

Reports toString() calls on java.util.Date objects.

Call to 'Number.toString()'   New in this release

Reports toString() calls on objects of a class extending Number.

Call to 'String.toUpperCase()' or 'toLowerCase()' without locale   New in this release

Reports toUpperCase() or toLowerCase() calls on String objects that do not specify a java.util.Locale.

Call to 'Time.toString()'   New in this release

Reports toString() calls on java.sql.Time objects.

Call to suspicious 'String' method   New in this release

Reports calls of: equals() equalsIgnoreCase() compareTo() compareToIgnoreCase() and trim() on String objects.

Character comparison   New in this release

Reports ordinal comparisons of char values.

Duplicate string literal   New in this release

Reports string literals that are replicated unchanged throughout the project.

Hardcoded strings   New in this release

Reports any instances of hardcoded String literals.

Implicit platform default charset   New in this release

Reports method and constructor calls that implicitly use the platform default charset.

Incorrect string capitalization   New in this release

Reports strings in method parameters and return values annotated with @Nls and having the capitalization parameter to conform to capitalization rules existing in most platform UI guidelines.

Magic character   New in this release

Reports character literals that are used without constant declaration.

Non-Basic Latin character   New in this release

Reports non-Basic Latin characters in literals and suggests replacing them with unicode entities.

String concatenation   New in this release

Reports String concatenations.

Unnecessary unicode escape sequence   New in this release

Reports unnecessary unicode escape sequences.

Use of 'StringTokenizer'   New in this release

Reports usages of the StringTokenizer class.

Last modified: 11 September 2024