From f752f803ebab035c09988e9ed2f70399f0fe8425 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Wed, 30 Jun 2010 20:24:49 +0000 Subject: [PATCH] Eclipse warnings git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@959422 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/lang3/Range.java | 2 +- src/main/java/org/apache/commons/lang3/StringUtils.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/Range.java b/src/main/java/org/apache/commons/lang3/Range.java index 0a5dd7f83..e87b18b85 100644 --- a/src/main/java/org/apache/commons/lang3/Range.java +++ b/src/main/java/org/apache/commons/lang3/Range.java @@ -376,7 +376,7 @@ public final class Range implements Serializable { private static final long serialVersionUID = 1L; - @SuppressWarnings("unchecked") // Comparator works for all types + @SuppressWarnings("rawtypes") // Comparator works for all types public static final ComparableComparator INSTANCE = new ComparableComparator(); @SuppressWarnings("unchecked") // OK to cast, because comparator works for all types diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index a480c131f..58174b6be 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -4752,6 +4752,7 @@ public class StringUtils { * @deprecated See {@link CharSequenceUtils#length(CharSequence)} * @since 3.0 Changed signature from length(String) to length(CharSequence) */ + @Deprecated public static int length(CharSequence cs) { return CharSequenceUtils.length(cs); }