sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jso...@apache.org
Subject svn commit: r1807354 - /sis/branches/JDK8/storage/sis-storage/src/main/java/org/apache/sis/storage/FeatureSet.java
Date Tue, 05 Sep 2017 14:25:16 GMT
Author: jsorel
Date: Tue Sep  5 14:25:16 2017
New Revision: 1807354

URL: http://svn.apache.org/viewvc?rev=1807354&view=rev
Log:
FeatureSet : fix removeIf and replaceIf methods to match java List interface

Modified:
    sis/branches/JDK8/storage/sis-storage/src/main/java/org/apache/sis/storage/FeatureSet.java

Modified: sis/branches/JDK8/storage/sis-storage/src/main/java/org/apache/sis/storage/FeatureSet.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-storage/src/main/java/org/apache/sis/storage/FeatureSet.java?rev=1807354&r1=1807353&r2=1807354&view=diff
==============================================================================
--- sis/branches/JDK8/storage/sis-storage/src/main/java/org/apache/sis/storage/FeatureSet.java
[UTF-8] (original)
+++ sis/branches/JDK8/storage/sis-storage/src/main/java/org/apache/sis/storage/FeatureSet.java
[UTF-8] Tue Sep  5 14:25:16 2017
@@ -130,7 +130,7 @@ public interface FeatureSet extends Data
      * @param predicate matching predicate
      * @throws DataStoreException if an error occurred while removing features.
      */
-    default void removeIf(Predicate<? extends Feature> predicate) throws DataStoreException
{
+    default void removeIf(Predicate<? super Feature> predicate) throws DataStoreException
{
         throw new ReadOnlyDataStoreException(null,Resources.Keys.StoreIsReadOnly);
     }
 
@@ -151,7 +151,7 @@ public interface FeatureSet extends Data
      * @param updater operation called for each matching {@link Feature}
      * @throws DataStoreException
      */
-    default void replaceIf(Predicate<? extends Feature> predicate, UnaryOperator<Feature>
updater) throws DataStoreException {
+    default void replaceIf(Predicate<? super Feature> predicate, UnaryOperator<Feature>
updater) throws DataStoreException {
         throw new ReadOnlyDataStoreException(null,Resources.Keys.StoreIsReadOnly);
     }
 



Mime
View raw message