Skip to content

Commit ae89269

Browse files
committed
Fixed typos and added @SuppressWarnings so that all koans a warning free
1 parent 184a175 commit ae89269

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎koans/src/intermediate/AboutEquality.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public void noObjectShouldbeEqualToNull() {
2626
assertEquals(new Object().equals(null), __);
2727
}
2828

29+
@SuppressWarnings("unused")
2930
static class Car {
3031
private String name = "";
3132
private int horsepower = 0;

‎koans/src/intermediate/AboutInnerClasses.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class OtherInner extends AboutInnerClasses { }
103103
public void innerClassAndInheritanceOther() {
104104
OtherInner someObject = new OtherInner();
105105
// What do you expect here?
106-
// Complare this result with the last koan. What does that mean?
106+
// Compare this result with the last koan. What does that mean?
107107
assertEquals(someObject instanceof AboutInnerClasses, __);
108108
}
109109

0 commit comments

Comments
 (0)