mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-02-05 10:39:44 +00:00
Unchecked cast error
This commit is contained in:
parent
c24ea01906
commit
dc46da98fd
@ -105,10 +105,10 @@ public class SupplyChainValidation extends ArchivableEntity {
|
|||||||
this.certificatesUsed = new ArrayList<>();
|
this.certificatesUsed = new ArrayList<>();
|
||||||
this.rimId = "";
|
this.rimId = "";
|
||||||
for (ArchivableEntity ae : certificatesUsed) {
|
for (ArchivableEntity ae : certificatesUsed) {
|
||||||
if (ae instanceof BaseReferenceManifest) {
|
if (ae instanceof ReferenceManifest) {
|
||||||
this.rimId = ae.getId().toString();
|
this.rimId = ae.getId().toString();
|
||||||
break;
|
break;
|
||||||
} else {
|
} else if (ae instanceof Certificate) {
|
||||||
this.certificatesUsed.add((Certificate) ae);
|
this.certificatesUsed.add((Certificate) ae);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user