Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix jdk16 deprecation warnings. #206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/fsdmsgx/src/main/java/com/sample/hsm/HSMMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ private static AFSDFieldPackager getFAPackager() {
optionalGrp1.add(reserved1);
optionalGrp1.add(keySchemeLMK);
optionalGrp1.add(keyCheckValue);
LookAheadPackager determineGrp1 = new LookAheadPackager("LAGRP1", 0, new Byte((byte)';') ,optionalGrp1, null, new String[]{"key-scheme-lmk","key-check-value-len"}, null);
LookAheadPackager determineGrp1 = new LookAheadPackager("LAGRP1", 0, Byte.valueOf((byte)';') ,optionalGrp1, null, new String[]{"key-scheme-lmk","key-check-value-len"}, null);

FSDMsgX optionalGrp2 = new FSDMsgX("OptionalGroup2");

AFSDFieldPackager lmkid = new FixedFieldPackager("LMK-ID",2,AsciiInterpreter.INSTANCE);
AFSDFieldPackager percent = new FixedFieldPackager("delimiter-2","%",AsciiInterpreter.INSTANCE);
optionalGrp2.add(percent);
optionalGrp2.add(lmkid);
LookAheadPackager determineGrp2 = new LookAheadPackager("LAGRP2", 0, new Byte((byte)'%') ,optionalGrp2, null, new String[]{"LMK-ID"}, null);
LookAheadPackager determineGrp2 = new LookAheadPackager("LAGRP2", 0, Byte.valueOf((byte)'%') ,optionalGrp2, null, new String[]{"LMK-ID"}, null);


FSDMsgX container = new FSDMsgX("TranslateZPKReq-FA");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class FixedFieldPackager extends AFSDFieldPackager {
private int size;
private boolean padLeft = true;
private boolean padright = false;
private Byte padCharacter = new Byte((byte) 0x20); //space
private Byte padCharacter = Byte.valueOf((byte) 0x20); //space
private APCICompliance compliance = new NoCompliance();

public FixedFieldPackager(String name,int size,Interpreter interpretter) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected void init(FilterISOMsg filter, boolean initialize) throws Configuratio
public FilterISOMsg get(String name) {
FilterISOMsg filter = registry.get(name);
if (filter == null && name.matches("^\\d+$")) {
Integer port = new Integer(name);
Integer port = Integer.valueOf(name);
name = portRegistry.get(port);
if (name != null) {
filter = registry.get(name);
Expand Down