commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject svn commit: r1102588 - /commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java
Date Fri, 13 May 2011 07:21:54 GMT
Author: tcurdt
Date: Fri May 13 07:21:53 2011
New Revision: 1102588

URL: http://svn.apache.org/viewvc?rev=1102588&view=rev
Log:
whitespace


Modified:
    commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java

Modified: commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java?rev=1102588&r1=1102587&r2=1102588&view=diff
==============================================================================
--- commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java
(original)
+++ commons/proper/jci/trunk/core/src/test/java/org/apache/commons/jci/compilers/AbstractCompilerTestCase.java
Fri May 13 07:21:53 2011
@@ -28,7 +28,7 @@ import org.apache.commons.jci.stores.Mem
 
 /**
  * Providing convenience methods for JavaCompiler TestCases
- * 
+ *
  * @author tcurdt
  */
 public abstract class AbstractCompilerTestCase extends TestCase {
@@ -46,7 +46,7 @@ public abstract class AbstractCompilerTe
     }
 
     public void testSimpleCompile() throws Exception {
-        final JavaCompiler compiler = createJavaCompiler(); 
+        final JavaCompiler compiler = createJavaCompiler();
 
         final ResourceReader reader = new ResourceReader() {
             final private Map sources = new HashMap() {
@@ -86,7 +86,7 @@ public abstract class AbstractCompilerTe
     }
 
     public void testExtendedCompile() throws Exception {
-        final JavaCompiler compiler = createJavaCompiler(); 
+        final JavaCompiler compiler = createJavaCompiler();
 
         final ResourceReader reader = new ResourceReader() {
             final private Map sources = new HashMap() {
@@ -138,7 +138,7 @@ public abstract class AbstractCompilerTe
     }
 
     public void testInternalClassCompile() throws Exception {
-        final JavaCompiler compiler = createJavaCompiler(); 
+        final JavaCompiler compiler = createJavaCompiler();
 
         final ResourceReader reader = new ResourceReader() {
             final private Map sources = new HashMap() {
@@ -186,7 +186,7 @@ public abstract class AbstractCompilerTe
     }
 
     public void testUppercasePackageNameCompile() throws Exception {
-        final JavaCompiler compiler = createJavaCompiler(); 
+        final JavaCompiler compiler = createJavaCompiler();
 
         final ResourceReader reader = new ResourceReader() {
             final private Map sources = new HashMap() {
@@ -229,13 +229,14 @@ public abstract class AbstractCompilerTe
      * https://issues.apache.org/jira/browse/JCI-53
      */
     public void testCrossReferenceCompilation() throws Exception {
-    	final String javaVersion = System.getProperty("java.version");
-    	if (!(javaVersion.startsWith("1.5") || javaVersion.startsWith("1.6"))) {
-    		System.err.println("WARNING! Skipping testCrossReferenceCompilation() because your
runtime does not support java 1.5+ yet");
-    		return;
-    	}
-    	
-    	final JavaCompiler compiler = createJavaCompiler(); 
+      final String javaVersion = System.getProperty("java.version");
+
+      if (!(javaVersion.startsWith("1.5") || javaVersion.startsWith("1.6"))) {
+          System.err.println("WARNING! Skipping testCrossReferenceCompilation() because your
runtime does not support java 1.5+ yet");
+          return;
+      }
+
+      final JavaCompiler compiler = createJavaCompiler();
 
         final ResourceReader reader = new ResourceReader() {
             final private Map sources = new HashMap() {
@@ -272,7 +273,7 @@ public abstract class AbstractCompilerTe
         final JavaCompilerSettings settings = compiler.createDefaultSettings();
         settings.setTargetVersion("1.5");
         settings.setSourceVersion("1.5");
-        
+
         final MemoryResourceStore store = new MemoryResourceStore();
         final CompilationResult result = compiler.compile(
                 new String[] {
@@ -291,7 +292,7 @@ public abstract class AbstractCompilerTe
         assertNotNull("jci/Func2.class is not null", clazzBytesFunc2);
         assertTrue("jci/Func2.class is not empty", clazzBytesFunc2.length > 0);
     }
-    
+
 
 
     public final String toString( final CompilationProblem[] pProblems ) {



Mime
View raw message