@@ -1775,32 +1775,32 @@ private static class LazyHolder { // IODH
17751775 * This field does not need to be volatile since it is only accessed from
17761776 * synchronized methods.
17771777 */
1778- private static boolean inUse ;
1778+ private static boolean inUse ; //NOPMD @GuardedBy("this")
17791779 /*
17801780 * These arrays are mutable.
17811781 * They can only be updated by the updateTLDOverride method, and readers must first get an instance
17821782 * using the getInstance methods which are all (now) synchronized.
17831783 * The only other access is via getTLDEntries which is now synchronized.
17841784 */
17851785 // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1786- private static String [] countryCodeTLDsPlus = EMPTY_STRING_ARRAY ;
1786+ private static String [] countryCodeTLDsPlus = EMPTY_STRING_ARRAY ; //NOPMD @GuardedBy("this")
17871787 // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1788- private static String [] genericTLDsPlus = EMPTY_STRING_ARRAY ;
1788+ private static String [] genericTLDsPlus = EMPTY_STRING_ARRAY ; //NOPMD @GuardedBy("this")
17891789 // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1790- private static String [] countryCodeTLDsMinus = EMPTY_STRING_ARRAY ;
1790+ private static String [] countryCodeTLDsMinus = EMPTY_STRING_ARRAY ; //NOPMD @GuardedBy("this")
17911791 // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1792- private static String [] genericTLDsMinus = EMPTY_STRING_ARRAY ;
1792+ private static String [] genericTLDsMinus = EMPTY_STRING_ARRAY ; //NOPMD @GuardedBy("this")
17931793
17941794 // The constructors are deliberately private to avoid possible problems with unsafe publication.
17951795 // It is vital that the static override arrays are not mutable once they have been used in an instance
17961796 // The arrays could be copied into the instance variables, however if the static array were changed it could
17971797 // result in different settings for the shared default instances
17981798
17991799 // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1800- private static String [] localTLDsMinus = EMPTY_STRING_ARRAY ;
1800+ private static String [] localTLDsMinus = EMPTY_STRING_ARRAY ; //NOPMD @GuardedBy("this")
18011801
18021802 // WARNING: this array MUST be sorted, otherwise it cannot be searched reliably using binary search
1803- private static String [] localTLDsPlus = EMPTY_STRING_ARRAY ;
1803+ private static String [] localTLDsPlus = EMPTY_STRING_ARRAY ; //NOPMD @GuardedBy("this")
18041804
18051805 /**
18061806 * Tests if a sorted array contains the specified key
0 commit comments