@Test public void should_get_pmd_version() { assertThat(PmdVersion.getVersion()).isNotEmpty(); }
public static String getVersion() { Properties properties = new Properties(); InputStream input = null; try { input = PmdVersion.class.getResourceAsStream(PROPERTIES_PATH); properties.load(input); } catch (IOException e) { LoggerFactory.getLogger(PmdVersion.class).warn("Can not load the PMD version from the file " + PROPERTIES_PATH, e); } finally { Closeables.closeQuietly(input); } return properties.getProperty("pmd.version", ""); }
PmdVersion { public static String getVersion() { Properties properties = new Properties(); InputStream input = null; try { input = PmdVersion.class.getResourceAsStream(PROPERTIES_PATH); properties.load(input); } catch (IOException e) { LoggerFactory.getLogger(PmdVersion.class).warn("Can not load the PMD version from the file " + PROPERTIES_PATH, e); } finally { Closeables.closeQuietly(input); } return properties.getProperty("pmd.version", ""); } }
PmdVersion { public static String getVersion() { Properties properties = new Properties(); InputStream input = null; try { input = PmdVersion.class.getResourceAsStream(PROPERTIES_PATH); properties.load(input); } catch (IOException e) { LoggerFactory.getLogger(PmdVersion.class).warn("Can not load the PMD version from the file " + PROPERTIES_PATH, e); } finally { Closeables.closeQuietly(input); } return properties.getProperty("pmd.version", ""); } private  PmdVersion(); }
PmdVersion { public static String getVersion() { Properties properties = new Properties(); InputStream input = null; try { input = PmdVersion.class.getResourceAsStream(PROPERTIES_PATH); properties.load(input); } catch (IOException e) { LoggerFactory.getLogger(PmdVersion.class).warn("Can not load the PMD version from the file " + PROPERTIES_PATH, e); } finally { Closeables.closeQuietly(input); } return properties.getProperty("pmd.version", ""); } private  PmdVersion(); static String getVersion(); }
PmdVersion { public static String getVersion() { Properties properties = new Properties(); InputStream input = null; try { input = PmdVersion.class.getResourceAsStream(PROPERTIES_PATH); properties.load(input); } catch (IOException e) { LoggerFactory.getLogger(PmdVersion.class).warn("Can not load the PMD version from the file " + PROPERTIES_PATH, e); } finally { Closeables.closeQuietly(input); } return properties.getProperty("pmd.version", ""); } private  PmdVersion(); static String getVersion();  }