samples/apifest1/day1/subclassingsolution/src/org/netbeans/apifest/boolcircuit/Circuit.java
1.1 --- a/samples/apifest1/day1/subclassingsolution/src/org/netbeans/apifest/boolcircuit/Circuit.java Sat Jun 14 09:56:12 2008 +0200
1.2 +++ b/samples/apifest1/day1/subclassingsolution/src/org/netbeans/apifest/boolcircuit/Circuit.java Sat Jun 14 09:58:08 2008 +0200
1.3 @@ -32,9 +32,7 @@
1.4 @Override
1.5 public boolean evaluate(boolean[] in) {
1.6 if ( in.length != 2) {
1.7 - throw new IllegalArgumentException(
1.8 - "Should have two parameters"
1.9 - );
1.10 + throw new IllegalArgumentException( "Should have two parameters");
1.11 }
1.12 return in[0] && in[1];
1.13 }
1.14 @@ -46,9 +44,7 @@
1.15 @Override
1.16 public boolean evaluate(boolean[] in) {
1.17 if ( in.length != 2) {
1.18 - throw new IllegalArgumentException(
1.19 - "Should have two parameters"
1.20 - );
1.21 + throw new IllegalArgumentException( "Should have two parameters");
1.22 }
1.23 return in[0] || in[1];
1.24 }
1.25 @@ -60,9 +56,7 @@
1.26 @Override
1.27 public boolean evaluate(boolean[] in) {
1.28 if ( in.length != 1) {
1.29 - throw new IllegalArgumentException(
1.30 - "Should have one parameter"
1.31 - );
1.32 + throw new IllegalArgumentException( "Should have one parameter");
1.33 }
1.34 return !in[0];
1.35 }
1.36 @@ -70,8 +64,7 @@
1.37 };
1.38
1.39
1.40 - /** Feel free to implement and don't hesitate to throw
1.41 - * IllegalArgumentEception
1.42 + /** Feel free to implement and don't hesitate to throw IllegalArgumentEception
1.43 */
1.44 public abstract boolean evaluate(boolean... in);
1.45