diff options
| author | MrLolEthan <me@mrlolethan.com> | 2015-05-16 12:17:00 -0230 |
|---|---|---|
| committer | MrLolEthan <me@mrlolethan.com> | 2015-05-16 12:17:00 -0230 |
| commit | e9cdedf747aa5f34530485a86fc01e3c0c9484a5 (patch) | |
| tree | 74b3d59905da70dc218bf52fe7fbe56752149e87 /src/main/java/org/drtshock | |
| parent | d714b8394c1bb8fbc1bb52a7eac741cbdf247462 (diff) | |
Fix compile-time error.
When throwing a NotDeliciousException, the "new" keyword wasn't being used, thus causing it to be interpreted as a method call
Diffstat (limited to 'src/main/java/org/drtshock')
| -rw-r--r-- | src/main/java/org/drtshock/Potato.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/drtshock/Potato.java b/src/main/java/org/drtshock/Potato.java index 173340a..9e81c74 100644 --- a/src/main/java/org/drtshock/Potato.java +++ b/src/main/java/org/drtshock/Potato.java @@ -24,7 +24,7 @@ public class Potato implements Tuber { public void prepare() throws NotDeliciousException { this.addCondiments("sour cream", "chives", "butter", "crumbled bacon", "grated cheese", "ketchup", "salt", "tabasco"); this.listCondiments(); - if(!this.isDelicious()) throw NotDeliciousException(); + if(!this.isDelicious()) throw new NotDeliciousException(); } public void addCondiments(String... names) { |
