From 01f0de8858e80b5bed12deeb3ecf8e70b0a1f9d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Per-=C3=85ke=20Minborg?= Date: Fri, 28 Oct 2016 08:42:11 -0700 Subject: [PATCH] Remove redundant invocations of .toString() Change-Id: I80b73b653e97904605dc62484a7448f3bfbf721c --- server/src/main/java/com/vaadin/server/ExternalResource.java | 4 ++-- server/src/main/java/com/vaadin/server/ThemeResource.java | 2 +- 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; } /** -- 2.39.5