pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1860504 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SaslPrep.java
Date Sun, 02 Jun 2019 03:43:31 GMT
Author: tilman
Date: Sun Jun  2 03:43:30 2019
New Revision: 1860504

URL: http://svn.apache.org/viewvc?rev=1860504&view=rev
Log:
PDFBOX-4155: SonarQube fix

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SaslPrep.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SaslPrep.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SaslPrep.java?rev=1860504&r1=1860503&r2=1860504&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SaslPrep.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SaslPrep.java Sun
Jun  2 03:43:30 2019
@@ -26,6 +26,10 @@ import java.text.Normalizer;
 class SaslPrep
 {
 
+    private SaslPrep()
+    {
+    }
+
     /**
      * Return the {@code SASLPrep}-canonicalised version of the given {@code str} for use
as a query
      * string. This implements the {@code SASLPrep} algorithm defined in
@@ -67,7 +71,7 @@ class SaslPrep
 
         // 1. Map
         // non-ASCII space chars mapped to space
-        for (int i = 0, j = 0; i < str.length(); i++)
+        for (int i = 0; i < str.length(); i++)
         {
             char ch = str.charAt(i);
             if (nonAsciiSpace(ch))



Mime
View raw message