From 5739bba3eb84dea3ec3d888bacd28667c9a992de Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Fri, 18 Dec 2009 18:44:24 +0000 Subject: [PATCH] LANG-568 - @SuppressWarnings("unchecked") is used too generally git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@892343 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/commons/lang3/Range.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/commons/lang3/Range.java b/src/java/org/apache/commons/lang3/Range.java index ae582d463..151c81743 100644 --- a/src/java/org/apache/commons/lang3/Range.java +++ b/src/java/org/apache/commons/lang3/Range.java @@ -336,10 +336,10 @@ public class Range implements Serializable { private static final long serialVersionUID = 1L; - @SuppressWarnings("unchecked") + @SuppressWarnings("unchecked") // Comparator works for all types public static final ComparableComparator INSTANCE = new ComparableComparator(); - @SuppressWarnings("unchecked") + @SuppressWarnings("unchecked") // OK to cast, because comparator works for all types public static > ComparableComparator getInstance() { return (ComparableComparator) INSTANCE; }