@Test public void customSuffixes() { settings.setProperty(XmlPlugin.FILE_SUFFIXES_KEY, ".xhtml"); assertThat(xml.getFileSuffixes()).containsOnly(".xhtml"); }
@Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(configuration.getStringArray(XmlPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = Xml.DEFAULT_SUFFIXES; } return suffixes; }
Xml extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(configuration.getStringArray(XmlPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = Xml.DEFAULT_SUFFIXES; } return suffixes; } }
Xml extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(configuration.getStringArray(XmlPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = Xml.DEFAULT_SUFFIXES; } return suffixes; } Xml(Configuration configuration); }
Xml extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(configuration.getStringArray(XmlPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = Xml.DEFAULT_SUFFIXES; } return suffixes; } Xml(Configuration configuration); @Override String[] getFileSuffixes(); }
Xml extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(configuration.getStringArray(XmlPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = Xml.DEFAULT_SUFFIXES; } return suffixes; } Xml(Configuration configuration); @Override String[] getFileSuffixes(); static final String KEY; static final String XML_RESOURCE_PATH; static final String REPOSITORY_KEY; static final String REPOSITORY_NAME; static final String SONAR_WAY_PROFILE_NAME; static final String SONAR_WAY_PATH; }