From 9aa486e2fed2c43d23a5a26c7b2ed4cd1faf98d4 Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Fri, 12 Apr 2019 15:28:27 -0700 Subject: [PATCH] Removed jerry-core requirements --- pom.xml | 12 ++++++++++-- src/main/java/com/sangupta/colors/Swatch.java | 6 ++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 22c5a9b..bd2a684 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,5 @@ - 4.0.0 @@ -55,7 +56,14 @@ com.sangupta jerry-core - 3.0.0 + 3.0.1 + test + + + + com.google.code.findbugs + jsr305 + 3.0.2 diff --git a/src/main/java/com/sangupta/colors/Swatch.java b/src/main/java/com/sangupta/colors/Swatch.java index 5e9d0bf..ca722d0 100644 --- a/src/main/java/com/sangupta/colors/Swatch.java +++ b/src/main/java/com/sangupta/colors/Swatch.java @@ -22,13 +22,11 @@ import java.util.ArrayList; import java.util.List; -import com.sangupta.jerry.util.AssertUtils; - /** * A swatch is an active palette of colors. * * @author sangupta - * + * @since 1.0.0 */ public class Swatch { @@ -51,7 +49,7 @@ public Swatch() { * @param colors */ public Swatch(T[] colors) { - if(AssertUtils.isEmpty(colors)) { + if(colors == null || colors.length == 0) { return; }