Skip to content

Commit 9414ddf

Browse files
Remove '(static)' in default exception messages for non-static methods, as represented in ElonsToyCarTest.java. (exercism#2351)
[no important files changed]
1 parent 37f47a7 commit 9414ddf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

exercises/concept/elons-toy-car/src/main/java/ElonsToyCar.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ public static ElonsToyCar buy() {
44
}
55

66
public String distanceDisplay() {
7-
throw new UnsupportedOperationException("Please implement the (static) RemoteControlCar.distanceDisplay() method");
7+
throw new UnsupportedOperationException("Please implement the RemoteControlCar.distanceDisplay() method");
88
}
99

1010
public String batteryDisplay() {
11-
throw new UnsupportedOperationException("Please implement the (static) RemoteControlCar.batteryDisplay() method");
11+
throw new UnsupportedOperationException("Please implement the RemoteControlCar.batteryDisplay() method");
1212
}
1313

1414
public void drive() {
15-
throw new UnsupportedOperationException("Please implement the (static) RemoteControlCar.drive() method");
15+
throw new UnsupportedOperationException("Please implement the RemoteControlCar.drive() method");
1616
}
1717
}

0 commit comments

Comments
 (0)