Remove compilation warnings of an unused variable in ComparableRangeTests (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068125 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -38,7 +38,7 @@ public class ComparableRangeTests extends GenericTestCaseBase {
|
||||
new ComparableRange<R>(right, right);
|
||||
IllegalArgumentException caught = null;
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({"unchecked", "unused"})
|
||||
ComparableRange<?> range = new ComparableRange(left, right);
|
||||
} catch (IllegalArgumentException e) {
|
||||
caught = e;
|
||||
@@ -47,7 +47,7 @@ public class ComparableRangeTests extends GenericTestCaseBase {
|
||||
}
|
||||
caught = null;
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({"unchecked", "unused"})
|
||||
ComparableRange<?> range = new ComparableRange(right, left);
|
||||
} catch (IllegalArgumentException e) {
|
||||
caught = e;
|
||||
|
||||
Reference in New Issue
Block a user