pmd.patch 1.46 KB
Newer Older
John Zhang's avatar
John Zhang committed
1
2
3
4
diff -ur orig/pmd-src-6.1.0/pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java pmd-src-6.1.0/pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
--- orig/pmd-src-6.1.0/pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java	2017-05-20 20:36:32.000000000 +1000
+++ pmd-src-6.1.0/pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java	2017-12-19 14:30:10.744710417 +1100
@@ -74,7 +74,7 @@
John Zhang's avatar
John Zhang committed
5
6
7
8
9
10
11
12
         } catch (IOException e) {
             throw new IllegalStateException(e);
         } finally {
-            IOUtils.closeQuietly(writer);
+//            IOUtils.closeQuietly(writer);
         }
     }
 }
John Zhang's avatar
John Zhang committed
13
14
15
16
17
18
19
--- pmd-src-6.1.0/pmd-core/src/main/java/net/sourceforge/pmd/RuleSetFactory.java.orig	2018-03-22 22:32:29.000000000 +1100
+++ pmd-src-6.1.0/pmd-core/src/main/java/net/sourceforge/pmd/RuleSetFactory.java	2018-03-22 22:32:43.000000000 +1100
@@ -83,6 +83,7 @@
         } else {
             this.compatibilityFilter = null;
         }
+        LOG.setLevel(Level.OFF);
20
21
     }
 
John Zhang's avatar
John Zhang committed
22
23
24
25
26
27
28
29
30
31
     /**
--- pmd-src-6.1.0/pmd-core/src/main/java/net/sourceforge/pmd/lang/dfa/SequenceChecker.java.orig	2018-03-22 23:48:19.000000000 +1100
+++ pmd-src-6.1.0/pmd-core/src/main/java/net/sourceforge/pmd/lang/dfa/SequenceChecker.java	2018-03-22 23:48:31.000000000 +1100
@@ -95,6 +95,8 @@
 
         doSt.addStep(doExpr);
         doExpr.addStep(root);
+
+        LOGGER.setLevel(Level.OFF);
     }
32
 
John Zhang's avatar
John Zhang committed
33
     private Status aktStatus;