From 838e873376cc4a1cc3588746f6bf8dec4c9355a9 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 19 Jan 2010 17:09:10 +0000
Subject: [PATCH] Fix a bunch of warnings mentioned by the IDE (most of them related to the non-use of generics).

---
 opends/src/guitools/org/opends/guitools/controlpanel/datamodel/VLVIndexDescriptor.java |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/VLVIndexDescriptor.java b/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/VLVIndexDescriptor.java
index 7ba73b1..fead554 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/VLVIndexDescriptor.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/VLVIndexDescriptor.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2008 Sun Microsystems, Inc.
+ *      Copyright 2008-2010 Sun Microsystems, Inc.
  */
 
 package org.opends.guitools.controlpanel.datamodel;
@@ -73,15 +73,9 @@
   /**
    * {@inheritDoc}
    */
-  public int compareTo(Object o)
+  public int compareTo(AbstractIndexDescriptor o)
   {
-    int returnValue = -1;
-    if (o instanceof AbstractIndexDescriptor)
-    {
-      AbstractIndexDescriptor index = (AbstractIndexDescriptor)o;
-      returnValue = getName().compareTo(index.getName());
-    }
-    return returnValue;
+    return getName().compareTo(o.getName());
   }
 
   /**

--
Gitblit v1.10.0