diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2023-11-30 08:57:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 08:57:50 +0100 |
commit | 949978f7eea65000737414f15426e1e015c9e4bf (patch) | |
tree | 86e5345c061cb1dc4d3f1ad4b783f6590c03d660 /src/main/java/org/uic/barcode/ticket/api/asn/omv3/CustomerCardData.java | |
parent | Merge pull request #72 from UnionInternationalCheminsdeFer/1.4.4 (diff) | |
parent | c1 (diff) | |
download | UIC-barcode-949978f7eea65000737414f15426e1e015c9e4bf.tar UIC-barcode-949978f7eea65000737414f15426e1e015c9e4bf.tar.gz UIC-barcode-949978f7eea65000737414f15426e1e015c9e4bf.tar.bz2 UIC-barcode-949978f7eea65000737414f15426e1e015c9e4bf.tar.lz UIC-barcode-949978f7eea65000737414f15426e1e015c9e4bf.tar.xz UIC-barcode-949978f7eea65000737414f15426e1e015c9e4bf.tar.zst UIC-barcode-949978f7eea65000737414f15426e1e015c9e4bf.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main/java/org/uic/barcode/ticket/api/asn/omv3/CustomerCardData.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv3/CustomerCardData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv3/CustomerCardData.java index a7e7cfd..fcaf310 100644 --- a/src/main/java/org/uic/barcode/ticket/api/asn/omv3/CustomerCardData.java +++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv3/CustomerCardData.java @@ -244,8 +244,8 @@ public class CustomerCardData extends Object { fromCal.clear();
fromCal.setTime(fromDate);
- this.validFromYear = new Long( fromCal.get(Calendar.YEAR));
- this.validFromDay = new Long (fromCal.get(Calendar.DAY_OF_YEAR));
+ this.validFromYear = Long.valueOf( fromCal.get(Calendar.YEAR));
+ this.validFromDay = Long.valueOf(fromCal.get(Calendar.DAY_OF_YEAR));
if (untilDate == null) return;
@@ -257,8 +257,8 @@ public class CustomerCardData extends Object { int yearDiff = untilCal.get(Calendar.YEAR) - fromCal.get(Calendar.YEAR);
- this.validUntilYear = new Long( yearDiff);
- this.validUntilDay = new Long (untildays);
+ this.validUntilYear = Long.valueOf( yearDiff);
+ this.validUntilDay = Long.valueOf(untildays);
}
|