diff options
author | Sven Gothel <[email protected]> | 2014-06-28 15:59:26 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-06-28 15:59:26 +0200 |
commit | eb47aaba63e3b1bf55f274a0f338f1010a017ae4 (patch) | |
tree | 5e129e532519972457a8e71edec9d1410dd8c70f /src/java/com/jogamp/common/util | |
parent | 3bfc1e484ae247214d47f25fcc9b9da223f51fe1 (diff) |
Fix 'typo' in messages: 'Catched' -> 'Caught'
Diffstat (limited to 'src/java/com/jogamp/common/util')
-rw-r--r-- | src/java/com/jogamp/common/util/IOUtil.java | 16 | ||||
-rw-r--r-- | src/java/com/jogamp/common/util/TaskBase.java | 4 | ||||
-rw-r--r-- | src/java/com/jogamp/common/util/cache/TempFileCache.java | 4 |
3 files changed, 12 insertions, 12 deletions
diff --git a/src/java/com/jogamp/common/util/IOUtil.java b/src/java/com/jogamp/common/util/IOUtil.java index fe482d9..c70fa92 100644 --- a/src/java/com/jogamp/common/util/IOUtil.java +++ b/src/java/com/jogamp/common/util/IOUtil.java @@ -558,7 +558,7 @@ public class IOUtil { f = new File( decodeFromURI( specificURI.getPath() ) ); // validates uri, uses decoded uri.getPath() and normalizes it } catch(Exception iae) { if( DEBUG ) { - System.err.println("Catched "+iae.getClass().getSimpleName()+": new File("+decodeFromURI( specificURI.getPath() )+") failed: "+iae.getMessage()); + System.err.println("Caught "+iae.getClass().getSimpleName()+": new File("+decodeFromURI( specificURI.getPath() )+") failed: "+iae.getMessage()); iae.printStackTrace(); } f = null; @@ -585,7 +585,7 @@ public class IOUtil { System.err.println("IOUtil.toURL.1b: fUri "+fUri+PlatformPropsImpl.NEWLINE+ "\t, fUrl "+fUrl); } catch (Exception ee) { - System.err.println("Catched "+ee.getClass().getSimpleName()+": f.toURI().toURL() failed: "+ee.getMessage()); + System.err.println("Caught "+ee.getClass().getSimpleName()+": f.toURI().toURL() failed: "+ee.getMessage()); ee.printStackTrace(); } } @@ -614,7 +614,7 @@ public class IOUtil { } } catch (Exception mue) { if( DEBUG ) { - System.err.println("Catched "+mue.getClass().getSimpleName()+": new URL("+urlS+") failed: "+mue.getMessage()); + System.err.println("Caught "+mue.getClass().getSimpleName()+": new URL("+urlS+") failed: "+mue.getMessage()); mue.printStackTrace(); } } @@ -626,7 +626,7 @@ public class IOUtil { mode = 3; } catch (Exception e) { if( DEBUG ) { - System.err.println("Catched "+e.getClass().getSimpleName()+": "+uri+".toURL() failed: "+e.getMessage()); + System.err.println("Caught "+e.getClass().getSimpleName()+": "+uri+".toURL() failed: "+e.getMessage()); e.printStackTrace(); } } @@ -750,7 +750,7 @@ public class IOUtil { return AssetURLContext.createURL(resourcePath, cl).openConnection(); } catch (IOException ioe) { if(DEBUG) { - System.err.println("IOUtil: Catched Exception:"); + System.err.println("IOUtil: Caught Exception:"); ioe.printStackTrace(); } return null; @@ -760,7 +760,7 @@ public class IOUtil { return AssetURLContext.resolve(resourcePath, cl); } catch (IOException ioe) { if(DEBUG) { - System.err.println("IOUtil: Catched Exception:"); + System.err.println("IOUtil: Caught Exception:"); ioe.printStackTrace(); } } @@ -1164,7 +1164,7 @@ public class IOUtil { } catch (Throwable t) { res = -2; if(DEBUG) { - System.err.println("IOUtil.testDirExec: <"+exetst.getAbsolutePath()+">: Catched "+t.getClass().getSimpleName()+": "+t.getMessage()); + System.err.println("IOUtil.testDirExec: <"+exetst.getAbsolutePath()+">: Caught "+t.getClass().getSimpleName()+": "+t.getMessage()); // t.printStackTrace(); } } @@ -1425,7 +1425,7 @@ public class IOUtil { if(throwRuntimeException) { throw new RuntimeException(e); } else if(DEBUG) { - System.err.println("Catched Exception: "); + System.err.println("Caught Exception: "); e.printStackTrace(); } } diff --git a/src/java/com/jogamp/common/util/TaskBase.java b/src/java/com/jogamp/common/util/TaskBase.java index f305bb1..db437f8 100644 --- a/src/java/com/jogamp/common/util/TaskBase.java +++ b/src/java/com/jogamp/common/util/TaskBase.java @@ -68,7 +68,7 @@ public abstract class TaskBase implements Runnable { } protected final String getExceptionOutIntro() { - return catchExceptions ? "A catched" : "An uncatched"; + return catchExceptions ? "A caught" : "An uncaught"; } protected final void printSourceTrace() { if( null != sourceStack && null != exceptionOut ) { @@ -151,7 +151,7 @@ public abstract class TaskBase implements Runnable { public final boolean hasWaiter() { return null != syncObject; } /** - * @return A thrown exception while execution of the user action, if any and if catched + * @return A thrown exception while execution of the user action, if any and if caught * @see #RunnableTask(Runnable, Object, boolean) */ public final Throwable getThrowable() { return runnableException; } diff --git a/src/java/com/jogamp/common/util/cache/TempFileCache.java b/src/java/com/jogamp/common/util/cache/TempFileCache.java index 3fd0a59..e1b1aab 100644 --- a/src/java/com/jogamp/common/util/cache/TempFileCache.java +++ b/src/java/com/jogamp/common/util/cache/TempFileCache.java @@ -80,7 +80,7 @@ public class TempFileCache { _tmpBaseDir = new File(IOUtil.getTempDir(true /* executable */), tmpDirPrefix); _tmpBaseDir = IOUtil.testDir(_tmpBaseDir, true /* create */, false /* executable */); // executable already checked } catch (Exception ex) { - System.err.println("Warning: Catched Exception while retrieving executable temp base directory:"); + System.err.println("Warning: Caught Exception while retrieving executable temp base directory:"); ex.printStackTrace(); staticInitError = true; } @@ -95,7 +95,7 @@ public class TempFileCache { try { initTmpRoot(); } catch (Exception ex) { - System.err.println("Warning: Catched Exception due to initializing TmpRoot:"); + System.err.println("Warning: Caught Exception due to initializing TmpRoot:"); ex.printStackTrace(); staticInitError = true; } |