From: David ‘Bombe’ Roden Date: Sat, 2 Aug 2014 09:49:50 +0000 (+0200) Subject: “sone” can never be null, the constructor would balk. X-Git-Tag: 0.9-rc1^2~3^2~178 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=283043745205f86bcf7bf5144ecf437063aed102;p=Sone.git “sone” can never be null, the constructor would balk. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index 734847a..729f434 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -136,7 +136,7 @@ public class SoneInserter extends AbstractService { * @return This Sone inserter */ public SoneInserter setSone(Sone sone) { - checkArgument((this.sone == null) || sone.equals(this.sone), "Sone to insert can not be set to a different Sone"); + checkArgument(sone.equals(this.sone), "Sone to insert can not be set to a different Sone"); this.sone = sone; return this; }