directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r586763 - in /directory/apacheds/branches/bigbang: protocol-ntp/src/main/java/org/apache/directory/server/ntp/ protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/ protocol-shared/src/main/java/org/apache/directory/server/pr...
Date Sat, 20 Oct 2007 17:26:30 GMT
Author: elecharny
Date: Sat Oct 20 10:26:29 2007
New Revision: 586763

URL: http://svn.apache.org/viewvc?rev=586763&view=rev
Log:
Removed some more warnings

Modified:
    directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/NtpServer.java
    directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/LeapIndicatorType.java
    directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/ModeType.java
    directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/ReferenceIdentifier.java
    directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/StratumType.java
    directory/apacheds/branches/bigbang/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/MapAdapter.java

Modified: directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/NtpServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/NtpServer.java?rev=586763&r1=586762&r2=586763&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/NtpServer.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/NtpServer.java
Sat Oct 20 10:26:29 2007
@@ -38,7 +38,6 @@
  */
 public class NtpServer extends ServiceConfiguration
 {
-    @SuppressWarnings ( { "UnusedDeclaration" } )
     private static final long serialVersionUID = 2961795205765175775L;
 
     /**

Modified: directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/LeapIndicatorType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/LeapIndicatorType.java?rev=586763&r1=586762&r2=586763&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/LeapIndicatorType.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/LeapIndicatorType.java
Sat Oct 20 10:26:29 2007
@@ -41,7 +41,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public final class LeapIndicatorType implements Comparable
+public final class LeapIndicatorType implements Comparable<LeapIndicatorType>
 {
     /**
      * Constant for the "No leap second warning" leap indicator type.
@@ -75,7 +75,7 @@
     /**
      * A list of all the leap indicator type constants.
      */
-    public static final List VALUES = Collections.unmodifiableList( Arrays.asList( values
) );
+    public static final List<LeapIndicatorType> VALUES = Collections.unmodifiableList(
Arrays.asList( values ) );
 
     /**
      * The name of the leap indicator type.
@@ -129,9 +129,9 @@
     }
 
 
-    public int compareTo( Object that )
+    public int compareTo( LeapIndicatorType that )
     {
-        return ordinal - ( ( LeapIndicatorType ) that ).ordinal;
+        return ordinal - that.ordinal;
     }
 
 

Modified: directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/ModeType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/ModeType.java?rev=586763&r1=586762&r2=586763&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/ModeType.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/ModeType.java
Sat Oct 20 10:26:29 2007
@@ -44,7 +44,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public final class ModeType implements Comparable
+public final class ModeType implements Comparable<ModeType>
 {
     /**
      * Constant for the "Reserved mode" mode type.
@@ -96,7 +96,7 @@
     /**
      * A list of all the mode type constants.
      */
-    public static final List VALUES = Collections.unmodifiableList( Arrays.asList( values
) );
+    public static final List<ModeType> VALUES = Collections.unmodifiableList( Arrays.asList(
values ) );
 
     /**
      * The name of the mode type.
@@ -149,9 +149,9 @@
     }
 
 
-    public int compareTo( Object that )
+    public int compareTo( ModeType that )
     {
-        return ordinal - ( ( ModeType ) that ).ordinal;
+        return ordinal - that.ordinal;
     }
 
 

Modified: directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/ReferenceIdentifier.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/ReferenceIdentifier.java?rev=586763&r1=586762&r2=586763&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/ReferenceIdentifier.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/ReferenceIdentifier.java
Sat Oct 20 10:26:29 2007
@@ -43,7 +43,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public class ReferenceIdentifier implements Comparable
+public class ReferenceIdentifier implements Comparable<ReferenceIdentifier>
 {
     /**
      * Constant for the "INIT" reference identifier type.
@@ -151,7 +151,7 @@
     /**
      * A list of all the reference identifier type constants.
      */
-    public static final List VALUES = Collections.unmodifiableList( Arrays.asList( values
) );
+    public static final List<ReferenceIdentifier> VALUES = Collections.unmodifiableList(
Arrays.asList( values ) );
 
     /**
      * The value/code for the reference identifier type.
@@ -242,9 +242,9 @@
     }
 
 
-    public int compareTo( Object that )
+    public int compareTo( ReferenceIdentifier that )
     {
-        return ordinal - ( ( ReferenceIdentifier ) that ).ordinal;
+        return ordinal - that.ordinal;
     }
 
 

Modified: directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/StratumType.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/StratumType.java?rev=586763&r1=586762&r2=586763&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/StratumType.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-ntp/src/main/java/org/apache/directory/server/ntp/messages/StratumType.java
Sat Oct 20 10:26:29 2007
@@ -40,7 +40,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public final class StratumType implements Comparable
+public final class StratumType implements Comparable<StratumType>
 {
     /**
      * Constant for the "Unspecified or unavailable" stratum type.
@@ -66,7 +66,7 @@
     /**
      * A list of all the stratum type constants.
      */
-    public static final List VALUES = Collections.unmodifiableList( Arrays.asList( values
) );
+    public static final List<StratumType> VALUES = Collections.unmodifiableList( Arrays.asList(
values ) );
 
     /**
      * The name of the stratum type.
@@ -120,9 +120,9 @@
     }
 
 
-    public int compareTo( Object that )
+    public int compareTo( StratumType that )
     {
-        return ordinal - ( ( StratumType ) that ).ordinal;
+        return ordinal - that.ordinal;
     }
 
 

Modified: directory/apacheds/branches/bigbang/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/MapAdapter.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/MapAdapter.java?rev=586763&r1=586762&r2=586763&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/MapAdapter.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/MapAdapter.java
Sat Oct 20 10:26:29 2007
@@ -40,7 +40,7 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public class MapAdapter implements Map
+public class MapAdapter implements Map<Object, Object>
 {
     private Dictionary<Object, Object> dictionary;
 
@@ -86,11 +86,11 @@
     /**
      * @see java.util.Map#entrySet()
      */
-    public Set entrySet()
+    public Set<Map.Entry<Object, Object>> entrySet()
     {
         Map<Object, Object> map = new HashMap<Object, Object>();
 
-        Enumeration e = dictionary.keys();
+        Enumeration<Object> e = dictionary.keys();
 
         while ( e.hasMoreElements() )
         {
@@ -124,7 +124,7 @@
     /**
      * @see java.util.Map#keySet()
      */
-    public Set keySet()
+    public Set<Object> keySet()
     {
         return new HashSet<Object>( Collections.list( dictionary.keys() ) );
     }
@@ -175,7 +175,7 @@
     /**
      * @see java.util.Map#values()
      */
-    public Collection values()
+    public Collection<Object> values()
     {
         return Collections.list( dictionary.elements() );
     }



Mime
View raw message