aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorMrLolEthan <me@mrlolethan.com>2015-05-16 12:17:00 -0230
committerMrLolEthan <me@mrlolethan.com>2015-05-16 12:17:00 -0230
commite9cdedf747aa5f34530485a86fc01e3c0c9484a5 (patch)
tree74b3d59905da70dc218bf52fe7fbe56752149e87 /src/main/java/org
parentd714b8394c1bb8fbc1bb52a7eac741cbdf247462 (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')
-rw-r--r--src/main/java/org/drtshock/Potato.java2
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) {