commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1479408 - /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/
Date Sun, 05 May 2013 22:15:06 GMT
Author: sebb
Date: Sun May  5 22:15:05 2013
New Revision: 1479408

URL: http://svn.apache.org/r1479408
Log:
Document why warnings can be ignored here

Modified:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/CloneTransformer.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ConstantFactory.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ConstantTransformer.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/DefaultEquator.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionClosure.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionFactory.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionPredicate.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionTransformer.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/FalsePredicate.java

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/CloneTransformer.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/CloneTransformer.java?rev=1479408&r1=1479407&r2=1479408&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/CloneTransformer.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/CloneTransformer.java
Sun May  5 22:15:05 2013
@@ -43,7 +43,7 @@ public class CloneTransformer<T> impleme
      * @return the singleton instance
      * @since 3.1
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("unchecked") // the singleton instance works for all types
     public static <T> Transformer<T, T> cloneTransformer() {
         return (Transformer<T, T>) INSTANCE;
     }

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ConstantFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ConstantFactory.java?rev=1479408&r1=1479407&r2=1479408&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ConstantFactory.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ConstantFactory.java
Sun May  5 22:15:05 2013
@@ -48,7 +48,7 @@ public class ConstantFactory<T> implemen
      * @param constantToReturn  the constant object to return each time in the factory
      * @return the <code>constant</code> factory.
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("unchecked") // The null factory works for all object types
     public static <T> Factory<T> constantFactory(final T constantToReturn) {
         if (constantToReturn == null) {
             return (Factory<T>) NULL_INSTANCE;

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ConstantTransformer.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ConstantTransformer.java?rev=1479408&r1=1479407&r2=1479408&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ConstantTransformer.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ConstantTransformer.java
Sun May  5 22:15:05 2013
@@ -48,7 +48,7 @@ public class ConstantTransformer<I, O> i
      * @param <O>  the output type
      * @return Transformer<I, O> that always returns null.
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("unchecked") // The null transformer works for all object types
     public static <I, O> Transformer<I, O> nullTransformer() {
         return (Transformer<I, O>) NULL_INSTANCE;
     }

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/DefaultEquator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/DefaultEquator.java?rev=1479408&r1=1479407&r2=1479408&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/DefaultEquator.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/DefaultEquator.java
Sun May  5 22:15:05 2013
@@ -44,7 +44,7 @@ public class DefaultEquator<T> implement
      * @param <T>  the object type
      * @return the singleton instance
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("unchecked") // the static instance works for all types
     public static <T> DefaultEquator<T> defaultEquator() {
         return (DefaultEquator<T>) DefaultEquator.INSTANCE;
     }

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionClosure.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionClosure.java?rev=1479408&r1=1479407&r2=1479408&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionClosure.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionClosure.java
Sun May  5 22:15:05 2013
@@ -42,7 +42,7 @@ public final class ExceptionClosure<E> i
      * @return the singleton instance
      * @since 3.1
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("unchecked")  // the static instance works for all types
     public static <E> Closure<E> exceptionClosure() {
         return (Closure<E>) INSTANCE;
     }

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionFactory.java?rev=1479408&r1=1479407&r2=1479408&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionFactory.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionFactory.java
Sun May  5 22:15:05 2013
@@ -42,7 +42,7 @@ public final class ExceptionFactory<T> i
      * @return the singleton instance
      * @since 3.1
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("unchecked") // the static instance works for all types
     public static <T> Factory<T> exceptionFactory() {
         return (Factory<T>) INSTANCE;
     }

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionPredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionPredicate.java?rev=1479408&r1=1479407&r2=1479408&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionPredicate.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionPredicate.java
Sun May  5 22:15:05 2013
@@ -42,7 +42,7 @@ public final class ExceptionPredicate<T>
      * @return the singleton instance
      * @since 3.1
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("unchecked") // the static instance works for all types
     public static <T> Predicate<T> exceptionPredicate() {
         return (Predicate<T>) INSTANCE;
     }

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionTransformer.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionTransformer.java?rev=1479408&r1=1479407&r2=1479408&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionTransformer.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/ExceptionTransformer.java
Sun May  5 22:15:05 2013
@@ -43,7 +43,7 @@ public final class ExceptionTransformer<
      * @return the singleton instance
      * @since 3.1
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("unchecked") // the static instance works for all types
     public static <I, O> Transformer<I, O> exceptionTransformer() {
         return (Transformer<I, O>) INSTANCE;
     }

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/FalsePredicate.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/FalsePredicate.java?rev=1479408&r1=1479407&r2=1479408&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/FalsePredicate.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/functors/FalsePredicate.java
Sun May  5 22:15:05 2013
@@ -41,7 +41,7 @@ public final class FalsePredicate<T> imp
      * @return the singleton instance
      * @since 4.0
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("unchecked") // the static instance works for all types
     public static <T> Predicate<T> falsePredicate() {
         return (Predicate<T>) INSTANCE;
     }



Mime
View raw message