commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1160764 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java
Date Tue, 23 Aug 2011 16:05:59 GMT
Author: simonetripodi
Date: Tue Aug 23 16:05:58 2011
New Revision: 1160764

URL: http://svn.apache.org/viewvc?rev=1160764&view=rev
Log:
fixed checkstyle violation: Redundant 'final' modifier.

Modified:
    commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java?rev=1160764&r1=1160763&r2=1160764&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java
(original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/generator/util/EachElement.java
Tue Aug 23 16:05:58 2011
@@ -46,7 +46,7 @@ public final class EachElement {
      * @param collection to iterate
      * @return Generator<E>
      */
-    public static final <E> Generator<E> from(Collection<? extends E> collection)
{
+    public static <E> Generator<E> from(Collection<? extends E> collection)
{
         return collection == null ? null : EachElement.from(collection.iterator());
     }
 
@@ -56,7 +56,7 @@ public final class EachElement {
      * @return Generator
      */
     @SuppressWarnings("unchecked")
-    public static final <K, V> Generator<Map.Entry<K, V>> from(Map<?
extends K, ? extends V> map) {
+    public static <K, V> Generator<Map.Entry<K, V>> from(Map<? extends
K, ? extends V> map) {
         return map == null ? null : EachElement.from(((Map<K, V>) map).entrySet().iterator());
     }
 
@@ -65,7 +65,7 @@ public final class EachElement {
      * @param array to iterate
      * @return Generator
      */
-    public static final <E> Generator<E> from(E[] array) {
+    public static <E> Generator<E> from(E[] array) {
         return array == null ? null : EachElement.from(Arrays.asList(array).iterator());
     }
 
@@ -74,7 +74,7 @@ public final class EachElement {
      * @param iter to iterate
      * @return Generator
      */
-    public static final <E> Generator<E> from(Iterator<? extends E> iter)
{
+    public static <E> Generator<E> from(Iterator<? extends E> iter) {
         return iter == null ? null : new IteratorToGeneratorAdapter<E>(iter);
     }
 }



Mime
View raw message