@Test public void shouldNeverReturnNullWhenGettingLocalizationProblemLocales() { assertThat(I18n.getLocalizationProblemLocales(TestI18n.class), notNullValue()); }
public static Set<Locale> getLocalizationProblemLocales( Class<?> i18nClass ) { CheckArg.isNotNull(i18nClass, "i18nClass"); Set<Locale> locales = new HashSet<Locale>(LOCALE_TO_CLASS_TO_PROBLEMS_MAP.size()); for (Entry<Locale, Map<Class<?>, Set<String>>> localeEntry : LOCALE_TO_CLASS_TO_PROBLEMS_MAP.entrySet()) { for (Entry<Class<?>, Set<String>> classEntry : localeEntry.getValue().entrySet()) { if (!classEntry.getValue().isEmpty()) { locales.add(localeEntry.getKey()); break; } } } return locales; }
I18n implements I18nResource { public static Set<Locale> getLocalizationProblemLocales( Class<?> i18nClass ) { CheckArg.isNotNull(i18nClass, "i18nClass"); Set<Locale> locales = new HashSet<Locale>(LOCALE_TO_CLASS_TO_PROBLEMS_MAP.size()); for (Entry<Locale, Map<Class<?>, Set<String>>> localeEntry : LOCALE_TO_CLASS_TO_PROBLEMS_MAP.entrySet()) { for (Entry<Class<?>, Set<String>> classEntry : localeEntry.getValue().entrySet()) { if (!classEntry.getValue().isEmpty()) { locales.add(localeEntry.getKey()); break; } } } return locales; } }
I18n implements I18nResource { public static Set<Locale> getLocalizationProblemLocales( Class<?> i18nClass ) { CheckArg.isNotNull(i18nClass, "i18nClass"); Set<Locale> locales = new HashSet<Locale>(LOCALE_TO_CLASS_TO_PROBLEMS_MAP.size()); for (Entry<Locale, Map<Class<?>, Set<String>>> localeEntry : LOCALE_TO_CLASS_TO_PROBLEMS_MAP.entrySet()) { for (Entry<Class<?>, Set<String>> classEntry : localeEntry.getValue().entrySet()) { if (!classEntry.getValue().isEmpty()) { locales.add(localeEntry.getKey()); break; } } } return locales; } private  I18n( String id,
                  Class<?> i18nClass ); }
I18n implements I18nResource { public static Set<Locale> getLocalizationProblemLocales( Class<?> i18nClass ) { CheckArg.isNotNull(i18nClass, "i18nClass"); Set<Locale> locales = new HashSet<Locale>(LOCALE_TO_CLASS_TO_PROBLEMS_MAP.size()); for (Entry<Locale, Map<Class<?>, Set<String>>> localeEntry : LOCALE_TO_CLASS_TO_PROBLEMS_MAP.entrySet()) { for (Entry<Class<?>, Set<String>> classEntry : localeEntry.getValue().entrySet()) { if (!classEntry.getValue().isEmpty()) { locales.add(localeEntry.getKey()); break; } } } return locales; } private  I18n( String id,
                  Class<?> i18nClass ); static Set<Locale> getLocalizationProblemLocales( Class<?> i18nClass ); static Set<String> getLocalizationProblems( Class<?> i18nClass ); static Set<String> getLocalizationProblems( Class<?> i18nClass,
                                                       Locale locale ); static void initialize( Class<?> i18nClass ); String id(); boolean hasProblem(); boolean hasProblem( Locale locale ); String problem(); String problem( Locale locale ); @Override String text( Object... arguments ); @Override String text( Locale locale,
                        Object... arguments ); @Override String toString(); }
I18n implements I18nResource { public static Set<Locale> getLocalizationProblemLocales( Class<?> i18nClass ) { CheckArg.isNotNull(i18nClass, "i18nClass"); Set<Locale> locales = new HashSet<Locale>(LOCALE_TO_CLASS_TO_PROBLEMS_MAP.size()); for (Entry<Locale, Map<Class<?>, Set<String>>> localeEntry : LOCALE_TO_CLASS_TO_PROBLEMS_MAP.entrySet()) { for (Entry<Class<?>, Set<String>> classEntry : localeEntry.getValue().entrySet()) { if (!classEntry.getValue().isEmpty()) { locales.add(localeEntry.getKey()); break; } } } return locales; } private  I18n( String id,
                  Class<?> i18nClass ); static Set<Locale> getLocalizationProblemLocales( Class<?> i18nClass ); static Set<String> getLocalizationProblems( Class<?> i18nClass ); static Set<String> getLocalizationProblems( Class<?> i18nClass,
                                                       Locale locale ); static void initialize( Class<?> i18nClass ); String id(); boolean hasProblem(); boolean hasProblem( Locale locale ); String problem(); String problem( Locale locale ); @Override String text( Object... arguments ); @Override String text( Locale locale,
                        Object... arguments ); @Override String toString();  }