ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1812278 - in /webservices/wss4j/trunk: pom.xml ws-security-common/src/main/java/org/apache/wss4j/common/crypto/DERDecoder.java
Date Mon, 16 Oct 2017 10:31:51 GMT
Author: coheigea
Date: Mon Oct 16 10:31:51 2017
New Revision: 1812278

URL: http://svn.apache.org/viewvc?rev=1812278&view=rev
Log:
Adding ErrorProne

Modified:
    webservices/wss4j/trunk/pom.xml
    webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/crypto/DERDecoder.java

Modified: webservices/wss4j/trunk/pom.xml
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/pom.xml?rev=1812278&r1=1812277&r2=1812278&view=diff
==============================================================================
--- webservices/wss4j/trunk/pom.xml (original)
+++ webservices/wss4j/trunk/pom.xml Mon Oct 16 10:31:51 2017
@@ -238,9 +238,24 @@
                     <configuration>
                         <source>${targetJdk}</source>
                         <target>${targetJdk}</target>
-                        <showWarnings>true</showWarnings>
                         <compilerArgument>-Xlint:overrides</compilerArgument>
+                        <compilerId>javac-with-errorprone</compilerId>
+                        <forceJavacCompilerUse>true</forceJavacCompilerUse>
                     </configuration>
+                    <dependencies>
+                        <dependency>
+                            <groupId>org.codehaus.plexus</groupId>
+                            <artifactId>plexus-compiler-javac-errorprone</artifactId>
+                            <version>2.8</version>
+                        </dependency>
+                        <!-- override plexus-compiler-javac-errorprone's dependency on
+                             Error Prone with the latest version -->
+                        <dependency>
+                            <groupId>com.google.errorprone</groupId>
+                            <artifactId>error_prone_core</artifactId>
+                            <version>2.1.1</version>
+                        </dependency>
+                    </dependencies>
                 </plugin>
                 <plugin>
                     <groupId>org.apache.rat</groupId>

Modified: webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/crypto/DERDecoder.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/crypto/DERDecoder.java?rev=1812278&r1=1812277&r2=1812278&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/crypto/DERDecoder.java
(original)
+++ webservices/wss4j/trunk/ws-security-common/src/main/java/org/apache/wss4j/common/crypto/DERDecoder.java
Mon Oct 16 10:31:51 2017
@@ -171,9 +171,6 @@ public class DERDecoder {
         int len;
         if ((arr[pos] & 0xFF) <= 0x7F) {
             len = arr[pos++];
-        } else if (arr[pos] == 0x80) {
-            len = -1;
-            pos++;
         } else {
             int nbytes = arr[pos++] & 0x7F;
             if (pos + nbytes > arr.length) {



Mime
View raw message