directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1485896 - in /directory/apacheds/trunk: kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/ kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/ xdbm-partition/src/main/java/org/apache/directory/server...
Date Thu, 23 May 2013 23:11:36 GMT
Author: elecharny
Date: Thu May 23 23:11:36 2013
New Revision: 1485896

URL: http://svn.apache.org/r1485896
Log:
Various Sonar warnings removal

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosTime.java
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/ChangePasswdData.java
    directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/IndexEntry.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosTime.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosTime.java?rev=1485896&r1=1485895&r2=1485896&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosTime.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosTime.java
Thu May 23 23:11:36 2013
@@ -37,8 +37,6 @@ import org.apache.directory.api.util.Str
  */
 public class KerberosTime implements Comparable<KerberosTime>
 {
-    private static final long serialVersionUID = 1L;
-
     /** The UTC timeZone */
     private static final TimeZone UTC = TimeZone.getTimeZone( "UTC" );
 

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/ChangePasswdData.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/ChangePasswdData.java?rev=1485896&r1=1485895&r2=1485896&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/ChangePasswdData.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/messages/ChangePasswdData.java
Thu May 23 23:11:36 2013
@@ -192,7 +192,7 @@ public class ChangePasswdData extends Ab
 
         sb.append( "ChangePasswdData : \n" );
 
-        sb.append( "    newPasswd : " ).append( newPasswd ).append( '\n' );
+        sb.append( "    newPasswd : " ).append( Strings.utf8ToString( newPasswd ) ).append(
'\n' );
         sb.append( "    targName : " ).append( targName ).append( '\n' );
         sb.append( "    targRealm : " ).append( targRealm ).append( '\n' );
 

Modified: directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/IndexEntry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/IndexEntry.java?rev=1485896&r1=1485895&r2=1485896&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/IndexEntry.java
(original)
+++ directory/apacheds/trunk/xdbm-partition/src/main/java/org/apache/directory/server/xdbm/IndexEntry.java
Thu May 23 23:11:36 2013
@@ -163,7 +163,7 @@ public class IndexEntry<K, ID>
     }
 
 
-    public boolean equals( IndexEntry<K, ID> that )
+    public boolean equals( Object that )
     {
         if ( that == this )
         {
@@ -175,7 +175,8 @@ public class IndexEntry<K, ID>
             return false;
         }
 
-        IndexEntry<K, ID> thatIndexEntry = that;
+        @SuppressWarnings("unchecked")
+        IndexEntry<K, ID> thatIndexEntry = ( IndexEntry<K, ID> ) that;
 
         if ( thatIndexEntry.getId() == null )
         {



Mime
View raw message