From 283043745205f86bcf7bf5144ecf437063aed102 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 2 Aug 2014 11:49:50 +0200 Subject: [PATCH] =?utf8?q?=E2=80=9Csone=E2=80=9D=20can=20never=20be=20null?= =?utf8?q?,=20the=20constructor=20would=20balk.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/core/SoneInserter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4