diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/PMD.java b/pmd-core/src/main/java/net/sourceforge/pmd/PMD.java index 6295de71d6..7372f15906 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/PMD.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/PMD.java @@ -406,18 +406,18 @@ public class PMD { } - if (null != configuration.getIgnoreFilePath()){ + if (null != configuration.getIgnoreFilePath()) { String ignoreFilePath = configuration.getIgnoreFilePath(); File file = new File(ignoreFilePath); - try{ - if (!file.exists()){ + try { + if (!file.exists()) { LOG.log(Level.SEVERE, "Problem with Ignore File Path", ignoreFilePath); throw new RuntimeException("Problem with Ignore File Path: " + ignoreFilePath); } else { String filePaths = FileUtil.readFilelist(new File(ignoreFilePath)); files.removeAll(FileUtil.collectFiles(filePaths, fileSelector)); } - } catch (IOException ex){ + } catch (IOException ex) { LOG.log(Level.SEVERE, "Problem with Ignore File", ex); throw new RuntimeException("Problem with Ignore File Path: " + ignoreFilePath, ex); }