From 94126e5b92a0af326b8ad85e53153980c22008c9 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Thu, 9 Jun 2022 10:18:50 +0200 Subject: version number update --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bdbe463..6623f5a 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 org.uic.barcode org.uic.barcode - 1.3.3 + 1.3.4 jar UIC barcode encoding and decoding of bar code content according to UIC IRS 90918-9 -- cgit v1.2.3 From 615dd5283b755617ff810f01136d5c292458e15e Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Thu, 9 Jun 2022 12:23:56 +0200 Subject: missing language code in the U_HEAD corrected internally. --- .../java/org/uic/barcode/staticFrame/UHEADDataRecord.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java b/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java index 492656a..22ba8ce 100644 --- a/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java +++ b/src/main/java/org/uic/barcode/staticFrame/UHEADDataRecord.java @@ -245,8 +245,20 @@ public class UHEADDataRecord extends DataRecord{ String flagsElement = String.format("%01d",this.flags); + String language1 = null; + String language2 = null; + if (this.language != null) { + language1 = String.format("%2s" ,this.language); + } else { + language1 = " "; + } + if (this.additionalLanguage != null) { + language2 = String.format("%2s" ,this.additionalLanguage); + } else { + language2 = " "; + } - String languageElement = String.format("%2s%2s" ,this.language, this.additionalLanguage); + String languageElement = language1 + language2; try { -- cgit v1.2.3 -- cgit v1.2.3