]> source.dussan.org Git - vaadin-framework.git/commitdiff
Remove redundant invocations of .toString()
authorPer-Åke Minborg <minborg@speedment.com>
Fri, 28 Oct 2016 15:42:11 +0000 (08:42 -0700)
committerHenri Sara <hesara@vaadin.com>
Wed, 2 Nov 2016 15:26:59 +0000 (15:26 +0000)
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf721c

server/src/main/java/com/vaadin/server/ExternalResource.java
server/src/main/java/com/vaadin/server/ThemeResource.java

index 85cb42843da29e2f70b651aac22daaea2c6434d8..a7137d7a77672f30796e97a4fbce8e21a0e41b6a 100644 (file)
@@ -80,7 +80,7 @@ public class ExternalResource implements Resource, Serializable {
             throw new RuntimeException("Source must be non-null");
         }
 
-        this.sourceURL = sourceURL.toString();
+        this.sourceURL = sourceURL;
     }
 
     /**
@@ -113,7 +113,7 @@ public class ExternalResource implements Resource, Serializable {
     @Override
     public String getMIMEType() {
         if (mimeType == null) {
-            mimeType = FileTypeResolver.getMIMEType(getURL().toString());
+            mimeType = FileTypeResolver.getMIMEType(getURL());
         }
         return mimeType;
     }
index 97c7fb5036a93010ede482432ee74f97d7e8e087..8fc0a76badcc0e4ea18b815211a7774f7e6addd4 100644 (file)
@@ -84,7 +84,7 @@ public class ThemeResource implements Resource {
      */
     @Override
     public String toString() {
-        return resourceID.toString();
+        return resourceID;
     }
 
     /**