Repository: tapestry-5
Updated Branches:
  refs/heads/master 15ad465f4 -> c61335a15


make use of the extracted variable


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/f0436696
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/f0436696
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/f0436696

Branch: refs/heads/master
Commit: f04366962ae5727e5fda6b82181bcf28cca75bed
Parents: 15ad465
Author: Jochen Kemnade <jochen.kemn...@eddyson.de>
Authored: Thu Nov 12 09:31:44 2015 +0100
Committer: Jochen Kemnade <jochen.kemn...@eddyson.de>
Committed: Thu Nov 12 09:31:44 2015 +0100

----------------------------------------------------------------------
 .../org/apache/tapestry5/ioc/internal/util/AbstractResource.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/f0436696/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/util/AbstractResource.java
----------------------------------------------------------------------
diff --git 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/util/AbstractResource.java
 
b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/util/AbstractResource.java
index 862f303..7af7c48 100644
--- 
a/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/util/AbstractResource.java
+++ 
b/tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/internal/util/AbstractResource.java
@@ -286,7 +286,7 @@ public abstract class AbstractResource extends LockSupport 
implements Resource
             // TAP5-2448: make sure that the URL does not reference a directory
             String urlAsString = url.toString();
 
-            int indexOfExclamationMark = url.toString().indexOf('!');
+            int indexOfExclamationMark = urlAsString.indexOf('!');
 
             String resourceInJar = 
urlAsString.substring(indexOfExclamationMark + 2);
 

Reply via email to