directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r487163 - in /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap: message/spi/Provider.java name/DefaultStringNormalizer.java name/Rdn.java
Date Thu, 14 Dec 2006 10:30:14 GMT
Author: elecharny
Date: Thu Dec 14 02:30:13 2006
New Revision: 487163

URL: http://svn.apache.org/viewvc?view=rev&rev=487163
Log:
Suppressed some warnings

Modified:
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/spi/Provider.java
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/DefaultStringNormalizer.java
    directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/spi/Provider.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/spi/Provider.java?view=diff&rev=487163&r1=487162&r2=487163
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/spi/Provider.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/message/spi/Provider.java
Thu Dec 14 02:30:13 2006
@@ -242,8 +242,8 @@
         try
         {
             Class clazz = Class.forName( className );
-            Method method = clazz.getMethod( "getProvider", null );
-            provider = ( Provider ) method.invoke( null, null );
+            Method method = clazz.getMethod( "getProvider", (Class[])null );
+            provider = ( Provider ) method.invoke( null, (Object[])null );
         }
         catch ( ClassNotFoundException cnfe )
         {

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/DefaultStringNormalizer.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/DefaultStringNormalizer.java?view=diff&rev=487163&r1=487162&r2=487163
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/DefaultStringNormalizer.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/DefaultStringNormalizer.java
Thu Dec 14 02:30:13 2006
@@ -35,6 +35,8 @@
  */
 public class DefaultStringNormalizer implements Normalizer
 {
+    public static final long serialVersionUID = 1L;
+    
     private static final DefaultStringNormalizer NORMALIZER = new DefaultStringNormalizer();
     
     public Object normalize( Object value ) throws NamingException

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java?view=diff&rev=487163&r1=487162&r2=487163
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/name/Rdn.java
Thu Dec 14 02:30:13 2006
@@ -139,6 +139,7 @@
     * 
     * Note : there is no Generic available classes in commons-collection...
     */
+   @SuppressWarnings({"unchecked"})
    private Map<String, AttributeTypeAndValue> atavTypes = new MultiHashMap();
 
    /**
@@ -248,6 +249,7 @@
     * @param rdn
     *            The non-null Rdn to be copied.
     */
+   @SuppressWarnings({"unchecked"})
    public Rdn( Rdn rdn )
    {
        super();
@@ -353,6 +355,7 @@
    // WARNING : The protection level is left unspecified intentionnaly.
    // We need this method to be visible from the DnParser class, but not
    // from outside this package.
+   @SuppressWarnings({"unchecked"})
    /* Unspecified protection */void addAttributeTypeAndValue( String type, Object value )
throws InvalidNameException
    {
        // First, let's normalize the type
@@ -575,6 +578,7 @@
    /**
     * Clone the Rdn
     */
+   @SuppressWarnings({"unchecked"})
    public Object clone()
    {
        try



Mime
View raw message