From 09fcb137f6d46e0c32f03b0313ac445a2ee7ecc3 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 25 Sep 2006 09:03:39 +0000
Subject: [PATCH] Implement test suite for org.opends.server.types.AttributeType and make it immutable (it's still not 100% immutable - the constructors do not perform deep copies of the extra properties).

---
 opends/src/server/org/opends/server/core/Schema.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/Schema.java b/opends/src/server/org/opends/server/core/Schema.java
index 20ff805..f38350b 100644
--- a/opends/src/server/org/opends/server/core/Schema.java
+++ b/opends/src/server/org/opends/server/core/Schema.java
@@ -296,7 +296,7 @@
                                        msgID);
         }
 
-        for (String name : attributeType.getNames().keySet())
+        for (String name : attributeType.getNormalizedNames())
         {
           if (attributeTypes.containsKey(name))
           {
@@ -313,7 +313,7 @@
 
       attributeTypes.put(toLowerCase(attributeType.getOID()), attributeType);
 
-      for (String name : attributeType.getNames().keySet())
+      for (String name : attributeType.getNormalizedNames())
       {
         attributeTypes.put(name, attributeType);
       }
@@ -344,7 +344,7 @@
     {
       attributeTypes.remove(toLowerCase(attributeType.getOID()), attributeType);
 
-      for (String name : attributeType.getNames().keySet())
+      for (String name : attributeType.getNormalizedNames())
       {
         attributeTypes.remove(name, attributeType);
       }

--
Gitblit v1.10.0