aboutsummaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/util/TestIOUtilURIHandling.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-03 16:06:47 +0200
committerSven Gothel <[email protected]>2014-07-03 16:06:47 +0200
commitdf9ff7f340a5ab4e07efc613f5f264eeae63d4c7 (patch)
tree239ae276b82024b140428e6c0fe5d739fdd686a4 /src/junit/com/jogamp/common/util/TestIOUtilURIHandling.java
parenteb47aaba63e3b1bf55f274a0f338f1010a017ae4 (diff)
Code Clean-Up based on our Recommended Settings (jogamp-scripting c47bc86ae2ee268a1f38c5580d11f93d7f8d6e74)
Code Clean-Up based on our Recommended Settings (jogamp-scripting c47bc86ae2ee268a1f38c5580d11f93d7f8d6e74) - Change non static accesses to static members using declaring type - Change indirect accesses to static members to direct accesses (accesses through subtypes) - Add final modifier to private fields - Add final modifier to method parameters - Add final modifier to local variables - Remove unnecessary casts - Remove unnecessary '$NON-NLS$' tags - Remove trailing white spaces on all lines
Diffstat (limited to 'src/junit/com/jogamp/common/util/TestIOUtilURIHandling.java')
-rw-r--r--src/junit/com/jogamp/common/util/TestIOUtilURIHandling.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/junit/com/jogamp/common/util/TestIOUtilURIHandling.java b/src/junit/com/jogamp/common/util/TestIOUtilURIHandling.java
index efd7030..ca62ae9 100644
--- a/src/junit/com/jogamp/common/util/TestIOUtilURIHandling.java
+++ b/src/junit/com/jogamp/common/util/TestIOUtilURIHandling.java
@@ -186,8 +186,8 @@ public class TestIOUtilURIHandling extends JunitTracer {
final String string = "Hallo Welt öä";
System.err.println("sp1 "+string);
{
- String sp2 = IOUtil.encodeToURI(string);
- String sp3 = IOUtil.encodeToURI(sp2);
+ final String sp2 = IOUtil.encodeToURI(string);
+ final String sp3 = IOUtil.encodeToURI(sp2);
System.err.println("sp2 "+sp2);
System.err.println("sp3 "+sp3);
}
@@ -315,7 +315,7 @@ public class TestIOUtilURIHandling extends JunitTracer {
}
}
- static void testURI2URL(String testname, String[][] uriSArray) throws IOException, URISyntaxException {
+ static void testURI2URL(final String testname, final String[][] uriSArray) throws IOException, URISyntaxException {
boolean ok = true;
for(int i=0; i<uriSArray.length; i++) {
final String[] uriSPair = uriSArray[i];
@@ -328,7 +328,7 @@ public class TestIOUtilURIHandling extends JunitTracer {
Assert.assertTrue("One or more errors occured see stderr above", ok);
}
- static boolean testURI2URL(String uriSource, String uriExpected) throws IOException, URISyntaxException {
+ static boolean testURI2URL(final String uriSource, final String uriExpected) throws IOException, URISyntaxException {
showURX(uriSource);
final URI uri0 = new URI(uriSource);
System.err.println("uri.string: "+uri0.toString());
@@ -346,7 +346,7 @@ public class TestIOUtilURIHandling extends JunitTracer {
URLConnection con = null;
try {
con = actualUrl.openConnection();
- } catch (Throwable _t) {
+ } catch (final Throwable _t) {
t = _t;
}
if( null != t ) {
@@ -359,7 +359,7 @@ public class TestIOUtilURIHandling extends JunitTracer {
return ok;
}
- static void testFile2URI(String testname, String[][] uriSArray) throws IOException, URISyntaxException {
+ static void testFile2URI(final String testname, final String[][] uriSArray) throws IOException, URISyntaxException {
boolean ok = true;
for(int i=0; i<uriSArray.length; i++) {
final String[] uriSPair = uriSArray[i];
@@ -374,7 +374,7 @@ public class TestIOUtilURIHandling extends JunitTracer {
Assert.assertTrue("One or more errors occured see stderr above", ok);
}
- static boolean testFile2URI(String fileSource, String uriEncExpected, String uriDecExpected, String fileExpected) throws IOException, URISyntaxException {
+ static boolean testFile2URI(final String fileSource, final String uriEncExpected, final String uriDecExpected, final String fileExpected) throws IOException, URISyntaxException {
final File file = new File(fileSource);
{
final URI uri0 = file.toURI();
@@ -405,7 +405,7 @@ public class TestIOUtilURIHandling extends JunitTracer {
URLConnection con = null;
try {
con = actualUrl.openConnection();
- } catch (Throwable _t) {
+ } catch (final Throwable _t) {
t = _t;
}
if( null != t ) {
@@ -418,8 +418,8 @@ public class TestIOUtilURIHandling extends JunitTracer {
return ok;
}
- public static void main(String args[]) throws IOException {
- String tstname = TestIOUtilURIHandling.class.getName();
+ public static void main(final String args[]) throws IOException {
+ final String tstname = TestIOUtilURIHandling.class.getName();
org.junit.runner.JUnitCore.main(tstname);
}
}