directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r521288 [2/2] - in /directory/shared/branches/0.9.5: ./ asn1/src/main/java/org/apache/directory/shared/asn1/der/ asn1/src/main/java/org/apache/directory/shared/asn1/primitives/ asn1/src/test/java/org/apache/directory/shared/asn1/primitives/
Date Thu, 22 Mar 2007 14:31:29 GMT
Modified: directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTaggedObject.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTaggedObject.java?view=diff&rev=521288&r1=521287&r2=521288
==============================================================================
--- directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTaggedObject.java
(original)
+++ directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTaggedObject.java
Thu Mar 22 07:31:25 2007
@@ -1,21 +1,23 @@
 /*
- *  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. 
- *  
+ * Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ * software and associated documentation files (the "Software"), to deal in the Software
+ * without restriction, including without limitation the rights to use, copy, modify,
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to the following
+ * conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in all copies
+ * or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+ * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * 
  */
 
 package org.apache.directory.shared.asn1.der;

Modified: directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTeletexString.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTeletexString.java?view=diff&rev=521288&r1=521287&r2=521288
==============================================================================
--- directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTeletexString.java
(original)
+++ directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERTeletexString.java
Thu Mar 22 07:31:25 2007
@@ -1,21 +1,23 @@
 /*
- *  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. 
- *  
+ * Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ * software and associated documentation files (the "Software"), to deal in the Software
+ * without restriction, including without limitation the rights to use, copy, modify,
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to the following
+ * conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in all copies
+ * or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+ * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * 
  */
 
 package org.apache.directory.shared.asn1.der;

Modified: directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTCTime.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTCTime.java?view=diff&rev=521288&r1=521287&r2=521288
==============================================================================
--- directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTCTime.java
(original)
+++ directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTCTime.java
Thu Mar 22 07:31:25 2007
@@ -1,21 +1,23 @@
 /*
- *  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. 
- *  
+ * Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ * software and associated documentation files (the "Software"), to deal in the Software
+ * without restriction, including without limitation the rights to use, copy, modify,
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to the following
+ * conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in all copies
+ * or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+ * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * 
  */
 
 package org.apache.directory.shared.asn1.der;

Modified: directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTF8String.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTF8String.java?view=diff&rev=521288&r1=521287&r2=521288
==============================================================================
--- directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTF8String.java
(original)
+++ directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUTF8String.java
Thu Mar 22 07:31:25 2007
@@ -1,21 +1,23 @@
 /*
- *  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. 
- *  
+ * Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ * software and associated documentation files (the "Software"), to deal in the Software
+ * without restriction, including without limitation the rights to use, copy, modify,
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to the following
+ * conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in all copies
+ * or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+ * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * 
  */
 
 package org.apache.directory.shared.asn1.der;

Modified: directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUniversalString.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUniversalString.java?view=diff&rev=521288&r1=521287&r2=521288
==============================================================================
--- directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUniversalString.java
(original)
+++ directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUniversalString.java
Thu Mar 22 07:31:25 2007
@@ -1,21 +1,23 @@
 /*
- *  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. 
- *  
+ * Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ * software and associated documentation files (the "Software"), to deal in the Software
+ * without restriction, including without limitation the rights to use, copy, modify,
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to the following
+ * conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in all copies
+ * or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+ * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * 
  */
 
 package org.apache.directory.shared.asn1.der;

Modified: directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUnknownTag.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUnknownTag.java?view=diff&rev=521288&r1=521287&r2=521288
==============================================================================
--- directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUnknownTag.java
(original)
+++ directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERUnknownTag.java
Thu Mar 22 07:31:25 2007
@@ -1,21 +1,23 @@
 /*
- *  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. 
- *  
+ * Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ * software and associated documentation files (the "Software"), to deal in the Software
+ * without restriction, including without limitation the rights to use, copy, modify,
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to the following
+ * conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in all copies
+ * or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+ * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * 
  */
 
 package org.apache.directory.shared.asn1.der;

Modified: directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERVisibleString.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERVisibleString.java?view=diff&rev=521288&r1=521287&r2=521288
==============================================================================
--- directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERVisibleString.java
(original)
+++ directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/DERVisibleString.java
Thu Mar 22 07:31:25 2007
@@ -1,21 +1,23 @@
 /*
- *  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. 
- *  
+ * Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ * software and associated documentation files (the "Software"), to deal in the Software
+ * without restriction, including without limitation the rights to use, copy, modify,
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to the following
+ * conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in all copies
+ * or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+ * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * 
  */
 
 package org.apache.directory.shared.asn1.der;

Modified: directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/OIDTokenizer.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/OIDTokenizer.java?view=diff&rev=521288&r1=521287&r2=521288
==============================================================================
--- directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/OIDTokenizer.java
(original)
+++ directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/der/OIDTokenizer.java
Thu Mar 22 07:31:25 2007
@@ -1,21 +1,23 @@
 /*
- *  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. 
- *  
+ * Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this
+ * software and associated documentation files (the "Software"), to deal in the Software
+ * without restriction, including without limitation the rights to use, copy, modify,
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to the following
+ * conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in all copies
+ * or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
+ * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ * 
  */
 
 package org.apache.directory.shared.asn1.der;

Modified: directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/primitives/OID.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/primitives/OID.java?view=diff&rev=521288&r1=521287&r2=521288
==============================================================================
--- directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/primitives/OID.java
(original)
+++ directory/shared/branches/0.9.5/asn1/src/main/java/org/apache/directory/shared/asn1/primitives/OID.java
Thu Mar 22 07:31:25 2007
@@ -629,6 +629,6 @@
             }
         }
 
-        return true;
+        return !dotSeen;
     }
 }

Modified: directory/shared/branches/0.9.5/asn1/src/test/java/org/apache/directory/shared/asn1/primitives/OIDTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/0.9.5/asn1/src/test/java/org/apache/directory/shared/asn1/primitives/OIDTest.java?view=diff&rev=521288&r1=521287&r2=521288
==============================================================================
--- directory/shared/branches/0.9.5/asn1/src/test/java/org/apache/directory/shared/asn1/primitives/OIDTest.java
(original)
+++ directory/shared/branches/0.9.5/asn1/src/test/java/org/apache/directory/shared/asn1/primitives/OIDTest.java
Thu Mar 22 07:31:25 2007
@@ -262,99 +262,16 @@
      */
     public void testOidStringBad()
     {
-
-        OID oid = new OID();
-
-        try
-        {
-            oid.setOID( "0" );
-        }
-        catch ( DecoderException de )
-        {
-            Assert.assertTrue( true );
-        }
-
-        try
-        {
-            oid.setOID( "0." );
-        }
-        catch ( DecoderException de )
-        {
-            Assert.assertTrue( true );
-        }
-
-        try
-        {
-            oid.setOID( "." );
-        }
-        catch ( DecoderException de )
-        {
-            Assert.assertTrue( true );
-        }
-
-        try
-        {
-            oid.setOID( "0.1.2." );
-        }
-        catch ( DecoderException de )
-        {
-            Assert.assertTrue( true );
-        }
-
-        try
-        {
-            oid.setOID( "3.1" );
-        }
-        catch ( DecoderException de )
-        {
-            Assert.assertTrue( true );
-        }
-
-        try
-        {
-            oid.setOID( "0..1" );
-        }
-        catch ( DecoderException de )
-        {
-            Assert.assertTrue( true );
-        }
-
-        try
-        {
-            oid.setOID( "0..12" );
-        }
-        catch ( DecoderException de )
-        {
-            Assert.assertTrue( true );
-        }
-
-        try
-        {
-            oid.setOID( "0.a.2" );
-        }
-        catch ( DecoderException de )
-        {
-            Assert.assertTrue( true );
-        }
-
-        try
-        {
-            oid.setOID( "0.123456" );
-        }
-        catch ( DecoderException de )
-        {
-            Assert.assertTrue( true );
-        }
-
-        try
-        {
-            oid.setOID( "1.123456" );
-        }
-        catch ( DecoderException de )
-        {
-            Assert.assertTrue( true );
-        }
-
+        assertFalse( OID.isOID( "0" ) );
+        assertFalse( OID.isOID( "0." ) );
+        assertFalse( OID.isOID( "." ) );
+        assertFalse( OID.isOID( "0.1.2." ) );
+        assertFalse( OID.isOID( "3.1" ) );
+        assertFalse( OID.isOID( "0..1" ) );
+        assertFalse( OID.isOID( "0..12" ) );
+        assertFalse( OID.isOID( "0.a.2" ) );
+        assertTrue( OID.isOID( "0.123456" ) );
+        assertTrue( OID.isOID( "1.123456" ) );
     }
 
 



Mime
View raw message