directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1067801 [2/2] - in /directory/shared/branches/m1: ldap-model/src/main/java/org/apache/directory/shared/ldap/model/entry/ ldap-model/src/main/java/org/apache/directory/shared/ldap/model/exception/ ldap-model/src/main/java/org/apache/directo...
Date Sun, 06 Feb 2011 23:05:34 GMT
Modified: directory/shared/branches/m1/ldap-schema/src/test/java/org/apache/directory/shared/ldap/schemaloader/SchemaManagerEnableDisableLoadTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-schema/src/test/java/org/apache/directory/shared/ldap/schemaloader/SchemaManagerEnableDisableLoadTest.java?rev=1067801&r1=1067800&r2=1067801&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-schema/src/test/java/org/apache/directory/shared/ldap/schemaloader/SchemaManagerEnableDisableLoadTest.java
(original)
+++ directory/shared/branches/m1/ldap-schema/src/test/java/org/apache/directory/shared/ldap/schemaloader/SchemaManagerEnableDisableLoadTest.java
Sun Feb  6 23:05:33 2011
@@ -76,6 +76,7 @@ public class SchemaManagerEnableDisableL
                                               "apachemeta", "collective", "java", "krb5kdc",
"other", "adsconfig", "pwdpolicy" );
 
     // List of all the disabled schemas
+    @SuppressWarnings("unused")
     private List<String>  disabledSchemas = Arrays.asList( "nis", "autofs", "apachedns",
"dhcp", "samba", "corba" );
 
 

Modified: directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/ArrayEnumeration.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/ArrayEnumeration.java?rev=1067801&r1=1067800&r2=1067801&view=diff
==============================================================================
--- directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/ArrayEnumeration.java
(original)
+++ directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/ArrayEnumeration.java
Sun Feb  6 23:05:33 2011
@@ -29,6 +29,7 @@ import java.util.NoSuchElementException;
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
+@SuppressWarnings("rawtypes")
 public class ArrayEnumeration implements Enumeration
 {
     /** the index into the array */

Modified: directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/JoinIterator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/JoinIterator.java?rev=1067801&r1=1067800&r2=1067801&view=diff
==============================================================================
--- directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/JoinIterator.java
(original)
+++ directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/JoinIterator.java
Sun Feb  6 23:05:33 2011
@@ -31,10 +31,10 @@ import org.apache.directory.shared.i18n.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class JoinIterator implements Iterator
+public class JoinIterator implements Iterator<Object>
 {
     /** the iterators whose results are joined */
-    private final Iterator[] iterators;
+    private final Iterator<?>[] iterators;
 
     private int index;
 
@@ -48,7 +48,7 @@ public class JoinIterator implements Ite
      *             if a null array argument, or one with less than 2 elements is
      *             used
      */
-    public JoinIterator(Iterator[] iterators)
+    public JoinIterator( Iterator<?>[] iterators )
     {
         if ( iterators == null || iterators.length < 2 )
         {

Modified: directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/NoDuplicateKeysMap.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/NoDuplicateKeysMap.java?rev=1067801&r1=1067800&r2=1067801&view=diff
==============================================================================
--- directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/NoDuplicateKeysMap.java
(original)
+++ directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/NoDuplicateKeysMap.java
Sun Feb  6 23:05:33 2011
@@ -32,6 +32,7 @@ import org.apache.directory.shared.i18n.
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
+@SuppressWarnings("rawtypes")
 public class NoDuplicateKeysMap extends HashMap
 {
     /**
@@ -40,6 +41,7 @@ public class NoDuplicateKeysMap extends 
      * 
      * @see java.util.Map#put(java.lang.Object, java.lang.Object)
      */
+    @SuppressWarnings("unchecked")
     public Object put( Object key, Object value ) throws IllegalArgumentException
     {
         if ( containsKey( key ) )

Modified: directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/SequencedHashMap.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/SequencedHashMap.java?rev=1067801&r1=1067800&r2=1067801&view=diff
==============================================================================
--- directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/SequencedHashMap.java
(original)
+++ directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/SequencedHashMap.java
Sun Feb  6 23:05:33 2011
@@ -57,6 +57,7 @@ import org.apache.directory.shared.i18n.
  * @since Commons Collections 2.0
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
+@SuppressWarnings("rawtypes")
 public class SequencedHashMap implements Map, Cloneable, Externalizable
 {
 
@@ -69,7 +70,7 @@ public class SequencedHashMap implements
         // Note: This class cannot easily be made clonable. While the actual
         // implementation of a clone would be simple, defining the semantics is
         // difficult. If a shallow clone is implemented, then entry.next.prev !=
-        // entry, which is unintuitive and probably breaks all sorts of
+        // entry, which is un-intuitive and probably breaks all sorts of
         // assumptions
         // in code that uses this implementation. If a deep clone is
         // implemented, then what happens when the linked list is cyclical (as
@@ -503,6 +504,7 @@ public class SequencedHashMap implements
     /**
      * Implements {@link Map#put(Object, Object)}.
      */
+    @SuppressWarnings("unchecked")
     public Object put( Object key, Object value )
     {
         modCount++;
@@ -1177,6 +1179,7 @@ public class SequencedHashMap implements
      * @see #keySet()
      * @return The ordered list of keys.
      */
+    @SuppressWarnings("unchecked")
     public List sequence()
     {
         List l = new ArrayList( size() );

Modified: directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/UnixCrypt.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/UnixCrypt.java?rev=1067801&r1=1067800&r2=1067801&view=diff
==============================================================================
--- directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/UnixCrypt.java
(original)
+++ directory/shared/branches/m1/util/src/main/java/org/apache/directory/shared/util/UnixCrypt.java
Sun Feb  6 23:05:33 2011
@@ -462,7 +462,8 @@ import org.apache.directory.shared.i18n.
       * @param setting the salt to be used
       * @return the encrypted String
       */
-     public static String crypt(String key, String setting)
+     @SuppressWarnings("deprecation")
+    public static String crypt(String key, String setting)
      {
          long constdatablock = 0L;       /* encryption constant */
          byte[] cryptresult = new byte[13];  /* encrypted result */

Modified: directory/shared/branches/m1/util/src/test/java/org/apache/directory/shared/util/MethodUtilsTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/util/src/test/java/org/apache/directory/shared/util/MethodUtilsTest.java?rev=1067801&r1=1067800&r2=1067801&view=diff
==============================================================================
--- directory/shared/branches/m1/util/src/test/java/org/apache/directory/shared/util/MethodUtilsTest.java
(original)
+++ directory/shared/branches/m1/util/src/test/java/org/apache/directory/shared/util/MethodUtilsTest.java
Sun Feb  6 23:05:33 2011
@@ -46,11 +46,13 @@ public class MethodUtilsTest
 {
     private static class TestClass
     {
+        @SuppressWarnings("unused")
         public static void methodA( String str )
         {
             
         }
         
+        @SuppressWarnings("unused")
         public static void methodB( Collection<?> c )
         {
             



Mime
View raw message