rwaldhoff 2003/06/30 16:36:14 Modified: functor/src/java/org/apache/commons/functor/generator IteratorToGeneratorAdapter.java Generator.java Log: use braces Revision Changes Path 1.2 +3 -3 jakarta-commons-sandbox/functor/src/java/org/apache/commons/functor/generator/IteratorToGeneratorAdapter.java Index: IteratorToGeneratorAdapter.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/functor/src/java/org/apache/commons/functor/generator/IteratorToGeneratorAdapter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- IteratorToGeneratorAdapter.java 30 Jun 2003 11:00:13 -0000 1.1 +++ IteratorToGeneratorAdapter.java 30 Jun 2003 23:36:13 -0000 1.2 @@ -92,7 +92,7 @@ public void run(UnaryProcedure proc) { while(iter.hasNext()) { proc.run(iter.next()); - if (isStopped()) break; + if (isStopped()) { break; } } } 1.2 +4 -5 jakarta-commons-sandbox/functor/src/java/org/apache/commons/functor/generator/Generator.java Index: Generator.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/functor/src/java/org/apache/commons/functor/generator/Generator.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Generator.java 30 Jun 2003 11:00:13 -0000 1.1 +++ Generator.java 30 Jun 2003 23:36:14 -0000 1.2 @@ -82,7 +82,6 @@ /** Create a new generator. */ public Generator() { - } /** @@ -95,7 +94,7 @@ } /** Get the generator that is being wrapped. */ - public Generator getWrappedGenerator() { + protected Generator getWrappedGenerator() { return wrappedGenerator; } @@ -104,7 +103,7 @@ /** Stop the generator. Will stop the wrapped generator if one was set. */ public void stop() { - if (wrappedGenerator != null) wrappedGenerator.stop(); + if (wrappedGenerator != null) { wrappedGenerator.stop(); } stopped = true; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]