sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1639969 - /sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/SparseFeature.java
Date Sun, 16 Nov 2014 06:37:30 GMT
Author: desruisseaux
Date: Sun Nov 16 06:37:30 2014
New Revision: 1639969

URL: http://svn.apache.org/r1639969
Log:
Removed useless call to String.valueOf.

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

Modified: sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/SparseFeature.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/SparseFeature.java?rev=1639969&r1=1639968&r2=1639969&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/SparseFeature.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/SparseFeature.java
[UTF-8] Sun Nov 16 06:37:30 2014
@@ -109,7 +109,7 @@ final class SparseFeature extends Abstra
         if (valuesKind != PROPERTIES) {
             if (!properties.isEmpty()) { // The map is typically empty when this method is
first invoked.
                 if (valuesKind != VALUES) {
-                    throw new CorruptedObjectException(String.valueOf(getName()));
+                    throw new CorruptedObjectException(getName());
                 }
                 valuesKind = CORRUPTED;
                 for (final Map.Entry<String, Object> entry : properties.entrySet())
{
@@ -189,7 +189,7 @@ final class SparseFeature extends Abstra
             } else if (valuesKind == PROPERTIES) {
                 throw unsupportedPropertyType(((Property) element).getName());
             } else {
-                throw new CorruptedObjectException(String.valueOf(getName()));
+                throw new CorruptedObjectException(getName());
             }
         } else if (properties.containsKey(name)) {
             return null; // Null has been explicitely set.
@@ -229,7 +229,7 @@ final class SparseFeature extends Abstra
         } else if (valuesKind == PROPERTIES) {
             setPropertyValue(getPropertyInstance(name), value);
         } else {
-            throw new CorruptedObjectException(String.valueOf(getName()));
+            throw new CorruptedObjectException(getName());
         }
     }
 



Mime
View raw message