sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1712576 - in /sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature: DefaultFeatureType.java DenseFeature.java
Date Wed, 04 Nov 2015 16:13:04 GMT
Author: desruisseaux
Date: Wed Nov  4 16:12:56 2015
New Revision: 1712576

URL: http://svn.apache.org/viewvc?rev=1712576&view=rev
Log:
Suppress some compiler warnings and minor formatting.

Modified:
    sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/DefaultFeatureType.java
    sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/DenseFeature.java

Modified: sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/DefaultFeatureType.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/DefaultFeatureType.java?rev=1712576&r1=1712575&r2=1712576&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/DefaultFeatureType.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/DefaultFeatureType.java
[UTF-8] Wed Nov  4 16:12:56 2015
@@ -234,6 +234,7 @@ public class DefaultFeatureType extends
      * @param properties     Any feature operation, any feature attribute type and any feature
      *                       association role that carries characteristics of a feature type.
      */
+    @SuppressWarnings("ThisEscapedInObjectConstruction")
     public DefaultFeatureType(final Map<String,?> identification, final boolean isAbstract,
             final FeatureType[] superTypes, final PropertyType... properties)
     {
@@ -683,8 +684,9 @@ public class DefaultFeatureType extends
      * @return The parents of this feature type, or an empty set if none.
      */
     @Override
+    @SuppressWarnings("ReturnOfCollectionOrArrayField")
     public final Set<FeatureType> getSuperTypes() {
-        return superTypes;
+        return superTypes;      // Immutable
     }
 
     /**
@@ -731,6 +733,7 @@ public class DefaultFeatureType extends
      * Returns the map from names to indices in an array of properties.
      * This is used for {@link DenseFeature} implementation.
      */
+    @SuppressWarnings("ReturnOfCollectionOrArrayField")
     final Map<String,Integer> indices() {
         return indices;
     }

Modified: sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/DenseFeature.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/DenseFeature.java?rev=1712576&r1=1712575&r2=1712576&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/DenseFeature.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/DenseFeature.java
[UTF-8] Wed Nov  4 16:12:56 2015
@@ -168,7 +168,7 @@ final class DenseFeature extends Abstrac
                 }
             }
         }
-        properties = c; // Store only on success.
+        properties = c;     // Store only on success.
     }
 
     /**



Mime
View raw message