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/utils/UicEncoderUtils.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/utils/UicEncoderUtils.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java b/src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java index 261b7ac..ab6932e 100644 --- a/src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java +++ b/src/main/java/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java @@ -388,7 +388,7 @@ public class UicEncoderUtils { if (value < min || value > max) {
throw new EncodingFormatException("Integer value exceeds boundaries");
}
- return new Long(value);
+ return Long.valueOf(value);
}
/**
@@ -407,7 +407,7 @@ public class UicEncoderUtils { if (value < min || value > max) {
throw new EncodingFormatException("Integer value exceeds boundaries");
}
- return new Long(value);
+ return Long.valueOf(value);
}
@@ -419,7 +419,7 @@ public class UicEncoderUtils { */
public static Long getUnRestrictedInt(int value) {
if (value == 0) return null;
- return new Long(value);
+ return Long.valueOf(value);
}
/**
|