From: Per-Åke Minborg Date: Fri, 28 Oct 2016 15:42:11 +0000 (-0700) Subject: Remove redundant invocations of .toString() X-Git-Tag: 8.0.0.alpha6~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=01f0de8858e80b5bed12deeb3ecf8e70b0a1f9d9;p=vaadin-framework.git Remove redundant invocations of .toString() Change-Id: I80b73b653e97904605dc62484a7448f3bfbf721c --- 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; } /**