]> granicus.if.org Git - icu/commitdiff
ICU-13002 Resolve ErrorProne warnings with MissingCasesInEnumSwitch
authorCraig Cornelius <ccornelius@google.com>
Wed, 22 Mar 2017 23:13:23 +0000 (23:13 +0000)
committerCraig Cornelius <ccornelius@google.com>
Wed, 22 Mar 2017 23:13:23 +0000 (23:13 +0000)
X-SVN-Rev: 39907

icu4j/main/classes/core/src/com/ibm/icu/impl/locale/LocaleValidityChecker.java

index a08b0684ff9a941b108ff6b8360bc8dbdde9223c..b327f5f9dbbfd60d2cb497be532f88bf90d014be 100644 (file)
@@ -106,6 +106,8 @@ public class LocaleValidityChecker {
                 case u:
                     if (!isValidU(locale, datatype, locale.getExtension(c), where)) return false;
                     break;
+                default:
+                    break;
                 }
             } catch (Exception e) {
                 return where.set(Datatype.illegal, c+"");
@@ -201,6 +203,8 @@ public class LocaleValidityChecker {
                         seen.clear();
                     }
                     break;
+                default:
+                    break;
                 }
                 switch (specialCase) {
                 case anything:
@@ -233,6 +237,8 @@ public class LocaleValidityChecker {
                         return false;
                     }
                     continue;
+                default:
+                    break;
                 }
 
                 // en-u-sd-usca