directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r473101 - /directory/branches/apacheds-schema/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ControlValueAction.java
Date Thu, 09 Nov 2006 22:22:52 GMT
Author: elecharny
Date: Thu Nov  9 14:22:51 2006
New Revision: 473101

URL: http://svn.apache.org/viewvc?view=rev&rev=473101
Log:
Fixed warnings by using generics

Modified:
    directory/branches/apacheds-schema/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ControlValueAction.java

Modified: directory/branches/apacheds-schema/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ControlValueAction.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds-schema/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ControlValueAction.java?view=diff&rev=473101&r1=473100&r2=473101
==============================================================================
--- directory/branches/apacheds-schema/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ControlValueAction.java
(original)
+++ directory/branches/apacheds-schema/shared/ldap/src/main/java/org/apache/directory/shared/ldap/codec/actions/ControlValueAction.java
Thu Nov  9 14:22:51 2006
@@ -58,7 +58,7 @@
     /** Speedup for logs */
     private static final boolean IS_DEBUG = log.isDebugEnabled();
 
-    private static Map controlDecoders = new HashMap();
+    private static Map<String, ControlDecoder> controlDecoders = new HashMap<String,
ControlDecoder>();
 
 
     public ControlValueAction()
@@ -92,8 +92,7 @@
         // Store the value - have to handle the special case of a 0 length value
         if ( tlv.getLength() == 0 )
         {
-            control.setControlValue( new byte[]
-                {} );
+            control.setControlValue( StringTools.EMPTY_BYTES );
         }
         else
         {



Mime
View raw message