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/quicksetup/org/opends/quicksetup/BuildInformation.java | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/BuildInformation.java b/opends/src/quicksetup/org/opends/quicksetup/BuildInformation.java
index 9d47a6e..0076720 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/BuildInformation.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/BuildInformation.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2006-2008 Sun Microsystems, Inc.
+ * Copyright 2006-2010 Sun Microsystems, Inc.
*/
package org.opends.quicksetup;
@@ -54,7 +54,7 @@
* Represents information about the current build that is
* publicly obtainable by invoking start-ds -F.
*/
-public class BuildInformation implements Comparable {
+public class BuildInformation implements Comparable<BuildInformation> {
static private final Logger LOG =
Logger.getLogger(BuildInformation.class.getName());
@@ -414,8 +414,7 @@
/**
* {@inheritDoc}
*/
- public int compareTo(Object o) {
- BuildInformation bi = (BuildInformation) o;
+ public int compareTo(BuildInformation bi) {
if (getMajorVersion().equals(bi.getMajorVersion())) {
if (getMinorVersion().equals(bi.getMinorVersion())) {
if (getPointVersion().equals(bi.getPointVersion())) {
@@ -442,7 +441,7 @@
public boolean equals(Object o) {
return this == o ||
!(o == null || getClass() != o.getClass()) &&
- compareTo(o) == 0;
+ compareTo((BuildInformation)o) == 0;
}
/**
@@ -457,7 +456,7 @@
return hc;
}
- static private void checkNotNull(Map values, String... props)
+ static private void checkNotNull(Map<?, ?> values, String... props)
throws ApplicationException {
for (String prop : props) {
if (null == values.get(prop)) {
--
Gitblit v1.10.0