Author: mrisaliti
Date: Sat Mar 5 15:03:27 2011
New Revision: 1078297
URL:
http://svn.apache.org/viewvc?rev=1078297&view=revLog:
Remove some unused warning in ComparableRangeTests (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/test/ComparableRangeTests.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/test/ComparableRangeTests.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/test/ComparableRangeTests.java?rev=1078297&r1=1078296&r2=1078297&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/test/ComparableRangeTests.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/lang/test/ComparableRangeTests.java Sat Mar 5 15:03:27 2011
@@ -33,13 +33,13 @@ public class ComparableRangeTests extend
super(name);
}
+ @SuppressWarnings("unchecked")
private static <L extends Comparable<L>, R extends Comparable<R>> void comparableRangeConstructorTest(L left, R right) {
new ComparableRange<L>(left, left);
new ComparableRange<R>(right, right);
IllegalArgumentException caught = null;
try {
- @SuppressWarnings({"unchecked", "unused"})
- ComparableRange<?> range = new ComparableRange(left, right);
+ new ComparableRange(left, right);
} catch (IllegalArgumentException e) {
caught = e;
} finally {
@@ -47,8 +47,7 @@ public class ComparableRangeTests extend
}
caught = null;
try {
- @SuppressWarnings({"unchecked", "unused"})
- ComparableRange<?> range = new ComparableRange(right, left);
+ new ComparableRange(right, left);
} catch (IllegalArgumentException e) {
caught = e;
} finally {