File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ class Child extends Parent {
2121
2222 @ Koan
2323 public void differenceBetweenOverloadingAndOverriding () {
24- assertEquals (new Parent ().doStuff (),__ );
25- assertEquals (new Child ().doStuff (),__ );
26- assertEquals (new Child ().doStuff ("oh no" ),__ );
24+ assertEquals (new Parent ().doStuff (), __ );
25+ assertEquals (new Child ().doStuff (), __ );
26+ assertEquals (new Child ().doStuff ("oh no" ), __ );
2727 }
2828
2929 abstract class ParentTwo {
@@ -38,7 +38,7 @@ class ChildTwo extends ParentTwo {
3838 public void overriddenMethodsMayReturnSubtype () {
3939 // What do you need to change in order to get rid of the type cast?
4040 // Why does this work?
41- List <?> list = (List <?>)new ChildTwo ().doStuff ();
41+ List <?> list = (List <?>) new ChildTwo ().doStuff ();
4242 assertEquals (list instanceof List , __ );
4343 }
4444}
You can’t perform that action at this time.
0 commit comments