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