directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1065369 - in /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls: Cascade.java CascadeImpl.java ManageDsaITImpl.java
Date Sun, 30 Jan 2011 20:39:42 GMT
Author: akarasulu
Date: Sun Jan 30 20:39:42 2011
New Revision: 1065369

URL: http://svn.apache.org/viewvc?rev=1065369&view=rev
Log:
removing static instances of no value Controls like ManageDsaIT which are unsafe: thanks to
Stefan Seelmann

Added:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/CascadeImpl.java
Modified:
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/Cascade.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/ManageDsaITImpl.java

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/Cascade.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/Cascade.java?rev=1065369&r1=1065368&r2=1065369&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/Cascade.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/Cascade.java
Sun Jan 30 20:39:42 2011
@@ -31,33 +31,4 @@ public interface Cascade extends Control
 {
     /** The Cascade control OID */
     String OID = "1.3.6.1.4.1.18060.0.0.1";
-
-    /**
-     * Simple Cascade control implementation.
-     *
-     * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
-     */
-    class SimpleCascade extends BasicControl implements Cascade
-    {
-
-
-        /**
-         * Default constructor
-         */
-        public SimpleCascade()
-        {
-            super( OID );
-        }
-
-
-        public void setValue( byte [] value )
-        {
-        }
-
-
-        public boolean hasValue()
-        {
-            return false;
-        }
-    }
 }

Added: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/CascadeImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/CascadeImpl.java?rev=1065369&view=auto
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/CascadeImpl.java
(added)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/CascadeImpl.java
Sun Jan 30 20:39:42 2011
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.directory.shared.ldap.model.message.controls;
+
+
+/**
+ * Simple Cascade control implementation.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class CascadeImpl extends BasicControl implements Cascade
+{
+
+
+    /**
+     * Default constructor
+     */
+    public CascadeImpl()
+    {
+        super( OID );
+    }
+
+
+    public void setValue( byte [] value )
+    {
+    }
+
+
+    public boolean hasValue()
+    {
+        return false;
+    }
+}
\ No newline at end of file

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/ManageDsaITImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/ManageDsaITImpl.java?rev=1065369&r1=1065368&r2=1065369&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/ManageDsaITImpl.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/model/message/controls/ManageDsaITImpl.java
Sun Jan 30 20:39:42 2011
@@ -1,6 +1,30 @@
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.directory.shared.ldap.model.message.controls;
 
+
+/**
+ * Simple ManageDsaIT implementation class.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
 public class ManageDsaITImpl extends BasicControl implements ManageDsaIT
 {
     /**
@@ -10,15 +34,4 @@ public class ManageDsaITImpl extends Bas
     {
         super( OID );
     }
-
-
-    public void setValue( byte [] value )
-    {
-    }
-
-
-    public boolean hasValue()
-    {
-        return false;
-    }
 }
\ No newline at end of file



Mime
View raw message