Skip to content

Commit 86a5d7c

Browse files
kahgohjagdish-15
andauthored
Fix stub exception message in two-bucket (#3023)
The stub exception message for getResult was incorrectly asking students to implement the constructor rather than the getResult method. This commit changes the stub messages to use the more recent format. [no important files changed] Co-authored-by: Jagdish Prajapati <[email protected]>
1 parent 85eaced commit 86a5d7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
class TwoBucket {
22

33
TwoBucket(int bucketOneCap, int bucketTwoCap, int desiredLiters, String startBucket) {
4-
throw new UnsupportedOperationException("Please implement the TwoBucket(int, int, int, String) constructor.");
4+
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
55
}
66

77
Result getResult() {
8-
throw new UnsupportedOperationException("Please implement the TwoBucket(int, int, int, String) constructor.");
8+
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
99
}
1010

1111
}

0 commit comments

Comments
 (0)