Skip to content

Commit

Permalink
MOSIP-32461 code changes (#1883)
Browse files Browse the repository at this point in the history
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
Co-authored-by: Sowmya Ujjappa Banakar <[email protected]>
  • Loading branch information
sowmya695 and Sowmya Ujjappa Banakar authored Jun 14, 2024
1 parent 823a00d commit 2872e0b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public void validateSignature(String id, String process, BiometricRecord biometr
List<BIR> birs = biometricRecord.getSegments();
for (BIR bir : birs) {
Map<String, String> othersInfo = null;
if (bir.getOthers() instanceof Map<String, String>) {
othersInfo = (Map<String, String>) bir.getOthers();
if (bir.getOthers() instanceof HashMap<String, String> othersInfo1) {
othersInfo = othersInfo1;
}
if (othersInfo == null) {
throw new BiometricSignatureValidationException("Others value is null inside BIR");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ private Map<String, String> getQualityTags(List<BIR> birs) throws BiometricExcep

if (bir.getOthers() != null) {
Map<String, String> othersInfo = null;
if (bir.getOthers() instanceof Map<String, String>) {
othersInfo = (Map<String, String>) bir.getOthers();
if (bir.getOthers() instanceof HashMap<String, String> othersInfo1) {
othersInfo = othersInfo1;
}
boolean exceptionValue = false;
if(othersInfo!=null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -278,8 +279,8 @@ private void getExceptionAndBiometricInfo(BiometricRecord biometricRecord, Anony
List<BIR> birs = biometricRecord.getSegments();
for (BIR bir : birs) {
Map<String, String> othersInfo = null;
if (bir.getOthers() instanceof Map<String, String>) {
othersInfo = (Map<String, String>) bir.getOthers();
if (bir.getOthers() instanceof HashMap<String, String> othersInfo1) {
othersInfo = othersInfo1;
}

if (othersInfo == null) {
Expand Down

0 comments on commit 2872e0b

Please sign in to comment.