Skip to content

Commit

Permalink
Whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelThessel committed Dec 16, 2013
1 parent cda6bbe commit 0332828
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions koans/src/beginner/AboutInheritance.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class Child extends Parent {

@Koan
public void differenceBetweenOverloadingAndOverriding() {
assertEquals(new Parent().doStuff(),__);
assertEquals(new Child().doStuff(),__);
assertEquals(new Child().doStuff("oh no"),__);
assertEquals(new Parent().doStuff(), __);
assertEquals(new Child().doStuff(), __);
assertEquals(new Child().doStuff("oh no"), __);
}

abstract class ParentTwo {
Expand All @@ -38,7 +38,7 @@ class ChildTwo extends ParentTwo {
public void overriddenMethodsMayReturnSubtype() {
// What do you need to change in order to get rid of the type cast?
// Why does this work?
List<?> list = (List<?>)new ChildTwo().doStuff();
List<?> list = (List<?>) new ChildTwo().doStuff();
assertEquals(list instanceof List, __);
}
}

0 comments on commit 0332828

Please sign in to comment.