Skip to content

Commit

Permalink
remove invalid encoding type of unspecified, build with gradle 8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
barnhill committed Jun 30, 2024
1 parent e96696a commit 9abea4c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
extra["gradle"] = "8.7"
extra["gradle"] = "8.8"
extra["javaVersion"] = JavaVersion.VERSION_11
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.pnuema.java
VERSION_NAME=2.6.4
VERSION_NAME=2.7.0
POM_ARTIFACT_ID=barcode

POM_NAME=Barcode-Java
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/pnuema/java/barcode/Barcode.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public enum AlignmentPositions {CENTER, LEFT, RIGHT}
private String rawData = "";
private String encodedValue = "";
private String countryAssigningManufacturerCode = "N/A";
private EncodingType encodedType = EncodingType.UNSPECIFIED;
private EncodingType encodedType = null;
private Color foreColor = Color.BLACK;
private Color backColor = Color.WHITE;
private int width = 300;
Expand Down Expand Up @@ -491,7 +491,7 @@ private Image encode() {
throw new IllegalArgumentException("EENCODE-1: Input data not allowed to be blank.");
}

if (getEncodedType() == EncodingType.UNSPECIFIED) {
if (getEncodedType() == null) {
throw new IllegalArgumentException("EENCODE-2: Symbology type not allowed to be unspecified.");
}

Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/pnuema/java/barcode/EncodingType.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* Barcode symbologies
*/
public enum EncodingType {
UNSPECIFIED,
UPCA,
UPCE,
UPC_SUPPLEMENTAL_2DIGIT,
Expand Down

0 comments on commit 9abea4c

Please sign in to comment.