pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SaslPrep.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SaslPrep.java?rev=1860502&r1=1860501&r2=1860502&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SaslPrep.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/SaslPrep.java
Sun Jun  2 03:43:21 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