@Test public void getFileSuffixes_withFileSuffixes() { String[] languageSuffixes = {"h", "m"}; settings.setProperty(ObjectiveCPlugin.FILE_SUFFIXES_KEY, languageSuffixes); String[] actual = language.getFileSuffixes(); assertEquals(languageSuffixes, actual); }
@Nonnull @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(configuration.getStringArray(ObjectiveCPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = StringUtils.split(ObjectiveCPlugin.FILE_SUFFIXES_DEFVALUE, ","); } return suffixes; }
ObjectiveC extends AbstractLanguage { @Nonnull @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(configuration.getStringArray(ObjectiveCPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = StringUtils.split(ObjectiveCPlugin.FILE_SUFFIXES_DEFVALUE, ","); } return suffixes; } }
ObjectiveC extends AbstractLanguage { @Nonnull @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(configuration.getStringArray(ObjectiveCPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = StringUtils.split(ObjectiveCPlugin.FILE_SUFFIXES_DEFVALUE, ","); } return suffixes; } @SuppressWarnings("WeakerAccess")  ObjectiveC(@Nonnull Configuration configuration); }
ObjectiveC extends AbstractLanguage { @Nonnull @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(configuration.getStringArray(ObjectiveCPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = StringUtils.split(ObjectiveCPlugin.FILE_SUFFIXES_DEFVALUE, ","); } return suffixes; } @SuppressWarnings("WeakerAccess")  ObjectiveC(@Nonnull Configuration configuration); @Nonnull @Override String[] getFileSuffixes(); @Override boolean equals(Object o); @Override int hashCode(); }
ObjectiveC extends AbstractLanguage { @Nonnull @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(configuration.getStringArray(ObjectiveCPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = StringUtils.split(ObjectiveCPlugin.FILE_SUFFIXES_DEFVALUE, ","); } return suffixes; } @SuppressWarnings("WeakerAccess")  ObjectiveC(@Nonnull Configuration configuration); @Nonnull @Override String[] getFileSuffixes(); @Override boolean equals(Object o); @Override int hashCode(); static final String KEY; }