incubator-yoko-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eno...@apache.org
Subject svn commit: r530448 - /incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/idlpreprocessor/IdlPreprocessorReaderTest.java
Date Thu, 19 Apr 2007 15:16:14 GMT
Author: enolan
Date: Thu Apr 19 08:16:13 2007
New Revision: 530448

URL: http://svn.apache.org/viewvc?view=rev&rev=530448
Log:
Yoko- submitting some checkstyle errors from within eclipse for the idlPreProcessorTest.

Modified:
    incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/idlpreprocessor/IdlPreprocessorReaderTest.java

Modified: incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/idlpreprocessor/IdlPreprocessorReaderTest.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/idlpreprocessor/IdlPreprocessorReaderTest.java?view=diff&rev=530448&r1=530447&r2=530448
==============================================================================
--- incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/idlpreprocessor/IdlPreprocessorReaderTest.java
(original)
+++ incubator/yoko/trunk/tools/src/test/java/org/apache/yoko/tools/idlpreprocessor/IdlPreprocessorReaderTest.java
Thu Apr 19 08:16:13 2007
@@ -10,28 +10,23 @@
 import java.util.HashMap;
 import java.util.regex.Pattern;
 
-import org.apache.yoko.tools.idlpreprocessor.DefineState;
-import org.apache.yoko.tools.idlpreprocessor.IdlPreprocessorReader;
-import org.apache.yoko.tools.idlpreprocessor.IncludeResolver;
-import org.apache.yoko.tools.idlpreprocessor.PreprocessingException;
-
 import junit.framework.TestCase;
 
 public class IdlPreprocessorReaderTest extends TestCase {
 
-	private URL findTestResource(String spec) {
+    private URL findTestResource(String spec) {
         String location = "/idlpreprocessor/" + spec;
         URL url = getClass().getResource(location);
         return url;
-	}
-	
-	private class ClassPathIncludeResolver implements IncludeResolver {
+    }
+
+    private class ClassPathIncludeResolver implements IncludeResolver {
         public URL findSystemInclude(String spec) {
             return findUserInclude(spec);
         }
 
         public URL findUserInclude(String spec) {
-        	return findTestResource(spec);
+            return findTestResource(spec);
         }
     }
 
@@ -96,12 +91,12 @@
             String actualLine = oReader.readLine();
             String expectedLine = rReader.readLine();
             assertEquals("difference in line " + line, expectedLine, actualLine);
-            eof = (actualLine == null || expectedLine == null);
+            eof = actualLine == null || expectedLine == null;
         } while (!eof);
         rReader.close();
     }
 
-   private void consumeReader(final Reader includeReader) throws IOException {
+    private void consumeReader(final Reader includeReader) throws IOException {
         LineNumberReader oReader = new LineNumberReader(includeReader);
         String line = null;
         do {



Mime
View raw message