To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit e66c5b4c authored by John Zhang's avatar John Zhang
Browse files

Update digest checksum

 - changed checking from stderr to stdout;
 - updated checksum;
 - use `braces.xml` and `text` format to produce some output on the
`xsmall` size;
 - patch a problematic code in PMD `AbstractRenderer.java` which closes
output stream after flushing. This causes null pointer error when DaCapo
tries to close TeePrintStream again.
parent aa5cc6c3
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<property name="mvn" location="${mvn-home}/${mvn-exe}"/> <property name="mvn" location="${mvn-home}/${mvn-exe}"/>
</target> </target>
<target name="bm-build" depends="build.init,xerces"> <target name="bm-build" depends="build.init,patch,xerces">
<!-- build JUnit --> <!-- build JUnit -->
<ant antfile="libs/junit/build.xml"/> <ant antfile="libs/junit/build.xml"/>
......
...@@ -3,9 +3,9 @@ benchmark pmd ...@@ -3,9 +3,9 @@ benchmark pmd
thread-model single thread-model single
jars "pmd-core-5.7.0.jar", "pmd-java-5.7.0.jar", "jaxen-1.1.6.jar", "asm-5.0.4.jar", "commons-io-2.4.jar", "commons-lang3-3.4.jar", "jcommander-1.48.jar", "saxon-9.1.0.8.jar", "saxon-9.1.0.8-dom.jar", "junit-3.8.1.jar", "xercesImpl.jar", "xml-apis.jar"; jars "pmd-core-5.7.0.jar", "pmd-java-5.7.0.jar", "jaxen-1.1.6.jar", "asm-5.0.4.jar", "commons-io-2.4.jar", "commons-lang3-3.4.jar", "jcommander-1.48.jar", "saxon-9.1.0.8.jar", "saxon-9.1.0.8-dom.jar", "junit-3.8.1.jar", "xercesImpl.jar", "xml-apis.jar";
size xsmall args "@pmd/small.lst","xml","pmd/rulesets/java/imports.xml","-debug" size xsmall args "@pmd/small.lst","text","pmd/rulesets/java/braces.xml","-debug"
output output
stderr digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709; stdout digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709;
size small args "@pmd/small.lst","text", size small args "@pmd/small.lst","text",
"pmd/rulesets/java/basic.xml", "pmd/rulesets/java/basic.xml",
...@@ -23,8 +23,8 @@ size small args "@pmd/small.lst","text", ...@@ -23,8 +23,8 @@ size small args "@pmd/small.lst","text",
"pmd/rulesets/java/strings.xml", "pmd/rulesets/java/strings.xml",
"pmd/rulesets/java/unusedcode.xml" "pmd/rulesets/java/unusedcode.xml"
output output
stderr digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709; stdout digest 0xc3ee874f7e895457e0c486291e082277786d7bbd;
size default args "@pmd/default.lst","text", size default args "@pmd/default.lst","text",
"pmd/rulesets/java/basic.xml", "pmd/rulesets/java/basic.xml",
"pmd/rulesets/java/braces.xml", "pmd/rulesets/java/braces.xml",
...@@ -41,7 +41,7 @@ size default args "@pmd/default.lst","text", ...@@ -41,7 +41,7 @@ size default args "@pmd/default.lst","text",
"pmd/rulesets/java/strings.xml", "pmd/rulesets/java/strings.xml",
"pmd/rulesets/java/unusedcode.xml" "pmd/rulesets/java/unusedcode.xml"
output output
stderr digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709; stdout digest 0x5b442091d85eae506967ac32c08e6f1a367be712;
size large args "@pmd/large.lst","text", size large args "@pmd/large.lst","text",
"pmd/rulesets/java/basic.xml", "pmd/rulesets/java/basic.xml",
...@@ -59,7 +59,7 @@ size large args "@pmd/large.lst","text", ...@@ -59,7 +59,7 @@ size large args "@pmd/large.lst","text",
"pmd/rulesets/java/strings.xml", "pmd/rulesets/java/strings.xml",
"pmd/rulesets/java/unusedcode.xml" "pmd/rulesets/java/unusedcode.xml"
output output
stderr digest 0xda39a3ee5e6b4b0d3255bfef95601890afd80709; stdout digest 0xb30e995b46d21fbd548a651c273d58d1bff3b756;
description description
short "A source code analyzer for Java", short "A source code analyzer for Java",
......
diff -ur orig/pmd-src-5.7.0/pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java pmd-src-5.7.0/pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
--- orig/pmd-src-5.7.0/pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java 2017-05-20 20:36:32.000000000 +1000
+++ pmd-src-5.7.0/pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java 2017-12-19 14:30:10.744710417 +1100
@@ -131,7 +131,7 @@
} catch (IOException e) {
throw new IllegalStateException(e);
} finally {
- IOUtils.closeQuietly(writer);
+// IOUtils.closeQuietly(writer);
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment