Skip to content

Commit

Permalink
Removed jerry-core requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
sangupta committed Apr 12, 2019
1 parent a13db91 commit 9aa486e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 10 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
Expand Down Expand Up @@ -55,7 +56,14 @@
<dependency>
<groupId>com.sangupta</groupId>
<artifactId>jerry-core</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
</dependencies>

Expand Down
6 changes: 2 additions & 4 deletions src/main/java/com/sangupta/colors/Swatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<T extends ColorModel> {

Expand All @@ -51,7 +49,7 @@ public Swatch() {
* @param colors
*/
public Swatch(T[] colors) {
if(AssertUtils.isEmpty(colors)) {
if(colors == null || colors.length == 0) {
return;
}

Expand Down

0 comments on commit 9aa486e

Please sign in to comment.