From f523625e510dbff8d8bc16f1bbf0a1e9189e40d0 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 27 Nov 2013 03:30:03 +0100 Subject: JarUtil: Use common strings for exceptions (same as used in IOUtil) --- src/java/com/jogamp/common/util/JarUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/java/com/jogamp/common/util') diff --git a/src/java/com/jogamp/common/util/JarUtil.java b/src/java/com/jogamp/common/util/JarUtil.java index 8897496..41455b7 100644 --- a/src/java/com/jogamp/common/util/JarUtil.java +++ b/src/java/com/jogamp/common/util/JarUtil.java @@ -204,7 +204,7 @@ public class JarUtil { if (0 <= idx) { uriS = uriS.substring(0, idx); // exclude '!/' } else { - throw new IllegalArgumentException("JAR URI does not contain jar uri terminator '!', in <"+classJarURI+">"); + throw new IllegalArgumentException("URI does not contain jar uri terminator '!', in <"+classJarURI+">"); } // from @@ -216,7 +216,7 @@ public class JarUtil { // no abs-path, check for protocol terminator ':' idx = uriS.lastIndexOf(':'); if(0 > idx) { - throw new IllegalArgumentException("JAR URI does not contain protocol terminator ':', in <"+classJarURI+">"); + throw new IllegalArgumentException("URI does not contain protocol terminator ':', in <"+classJarURI+">"); } } uriS = uriS.substring(idx+1); // just the jar name -- cgit v1.2.3