fix wrong advice from forbidden APIs :)

This commit is contained in:
Robert Muir 2023-11-03 12:30:39 -04:00
parent d2cdf238f3
commit 27abd1934d
No known key found for this signature in database
GPG Key ID: 817AE1DD322D7ECA
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ java.util.Vector @ Use more modern java.util.ArrayList as it is not synchronized
# TODO (needs some fix in forbiddenapis): this also hits java.util.Properties:
# java.util.Hashtable @ Use more modern java.util.HashMap as it is not synchronized
java.util.Locale#forLanguageTag(java.lang.String) @ use new Locale.Builder().setLanguageTag(...).build() which has error handling
java.util.Locale#forLanguageTag(java.lang.String) @ use new Locale.Builder.setLanguageTag(...).build() which has error handling
java.util.Locale#toString() @ use Locale#toLanguageTag() for a standardized BCP47 locale name
@defaultMessage Constructors for wrapper classes of Java primitives should be avoided in favor of the public static methods available or autoboxing