Skip to content

Commit

Permalink
Fix compile-time error.
Browse files Browse the repository at this point in the history
When throwing a NotDeliciousException, the "new" keyword wasn't being used, thus causing it to be interpreted as a method call
  • Loading branch information
MrLolEthan committed May 16, 2015
1 parent d714b83 commit e9cdedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/drtshock/Potato.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void main(String[] args) {
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) {
Expand Down

0 comments on commit e9cdedf

Please sign in to comment.