Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanpierrefortune committed Mar 29, 2024
1 parent 84648d5 commit 934ca58
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private static CardFileData getFileData(ElementaryFile selectedFile, CalypsoCard
.processCommands(ChannelControl.KEEP_OPEN);

fileData
.getRecordData()
.getRecordDataList()
.add((new RecordData(i + 1, selectedFile.getData().getContent((i + 1)))));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class CardFileData {

private final AccessConditions accessConditions;

private final List<RecordData> recordData;
private final List<RecordData> recordDataList;

public CardFileData(ElementaryFile fileInfo) {

Expand All @@ -67,7 +67,7 @@ public CardFileData(ElementaryFile fileInfo) {
new AccessConditions(
fileInfo.getHeader().getAccessConditions(), fileInfo.getHeader().getKeyIndexes());

recordData = new ArrayList<>();
recordDataList = new ArrayList<>();

ref = HexUtil.toHex(fileInfo.getHeader().getSharedReference());
}
Expand Down Expand Up @@ -108,8 +108,8 @@ public String getDataRef() {
return ref;
}

public List<RecordData> getRecordData() {
return recordData;
public List<RecordData> getRecordDataList() {
return recordDataList;
}

public void print(Logger logger) {
Expand Down Expand Up @@ -148,11 +148,10 @@ public void print(Logger logger) {
group3,
this.getDataRef());

for (int i = 0; this.getRecordData() != null && i < this.getRecordData().size(); i++) {
logger.info(
"+ #{}:{}",
this.getRecordData().get(i).getIndex(),
HexUtil.toHex(this.getRecordData().get(i).getValue()));
if (getRecordDataList() != null) {
for (RecordData recordData : getRecordDataList()) {
logger.info("+ #{}:{}", recordData.getIndex(), HexUtil.toHex(recordData.getValue()));
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public CardStructureData(

infos = softwareInfo;

date = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new Date(creationDate.getTime()));
date = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(creationDate);

version = softwareVersion;

Expand Down

0 comments on commit 934ca58

Please sign in to comment.