From 958cc0238cfb7c6c3f0b27dae66f63d4c5cf94a6 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.

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

diff --git a/opendj-sdk/opends/src/server/org/opends/server/admin/client/PropertySet.java b/opendj-sdk/opends/src/server/org/opends/server/admin/client/PropertySet.java
index d4407ac..5bddcbd 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/admin/client/PropertySet.java
+++ b/opendj-sdk/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