summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer-Åke Minborg <minborg@speedment.com>2016-10-28 08:42:11 -0700
committerHenri Sara <hesara@vaadin.com>2016-11-02 15:26:59 +0000
commit01f0de8858e80b5bed12deeb3ecf8e70b0a1f9d9 (patch)
tree7f3cf8f46ad036aefae22dc4253197d1448b103d
parenta17918fb4039897042b671e7b3525e7b17a63944 (diff)
downloadvaadin-framework-01f0de8858e80b5bed12deeb3ecf8e70b0a1f9d9.tar.gz
vaadin-framework-01f0de8858e80b5bed12deeb3ecf8e70b0a1f9d9.zip
Remove redundant invocations of .toString()
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf721c
-rw-r--r--server/src/main/java/com/vaadin/server/ExternalResource.java4
-rw-r--r--server/src/main/java/com/vaadin/server/ThemeResource.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/src/main/java/com/vaadin/server/ExternalResource.java b/server/src/main/java/com/vaadin/server/ExternalResource.java
index 85cb42843d..a7137d7a77 100644
--- a/server/src/main/java/com/vaadin/server/ExternalResource.java
+++ b/server/src/main/java/com/vaadin/server/ExternalResource.java
@@ -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;
}
diff --git a/server/src/main/java/com/vaadin/server/ThemeResource.java b/server/src/main/java/com/vaadin/server/ThemeResource.java
index 97c7fb5036..8fc0a76bad 100644
--- a/server/src/main/java/com/vaadin/server/ThemeResource.java
+++ b/server/src/main/java/com/vaadin/server/ThemeResource.java
@@ -84,7 +84,7 @@ public class ThemeResource implements Resource {
*/
@Override
public String toString() {
- return resourceID.toString();
+ return resourceID;
}
/**