From 54c2799f45256fef4a981fa2a6a7c97a9708ac8b Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 26 Jul 2007 12:01:44 +0000
Subject: [PATCH] Partial fix for issue 1831 - dsconfig interactive mode.

---
 opends/src/server/org/opends/server/admin/client/PropertySet.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opends/src/server/org/opends/server/admin/client/PropertySet.java b/opends/src/server/org/opends/server/admin/client/PropertySet.java
index d4407ac..5bddcbd 100644
--- a/opends/src/server/org/opends/server/admin/client/PropertySet.java
+++ b/opends/src/server/org/opends/server/admin/client/PropertySet.java
@@ -220,7 +220,7 @@
   }
 
   // The properties.
-  private final Map<PropertyDefinition, MyProperty> properties;
+  private final Map<PropertyDefinition<?>, MyProperty<?>> properties;
 
 
 
@@ -228,7 +228,7 @@
    * Creates a new empty property set.
    */
   public PropertySet() {
-    this.properties = new HashMap<PropertyDefinition, MyProperty>();
+    this.properties = new HashMap<PropertyDefinition<?>, MyProperty<?>>();
   }
 
 
@@ -286,7 +286,7 @@
       throw new IllegalArgumentException("Unknown property " + d.getName());
     }
 
-    return properties.get(d);
+    return (Property<T>) properties.get(d);
   }
 
 
@@ -445,7 +445,7 @@
   public String toString() {
     StringBuilder builder = new StringBuilder();
     builder.append('{');
-    for (Map.Entry<PropertyDefinition, MyProperty> entry : properties
+    for (Map.Entry<PropertyDefinition<?>, MyProperty<?>> entry : properties
         .entrySet()) {
       builder.append(entry.getKey().getName());
       builder.append('=');

--
Gitblit v1.10.0