backported fixes
This commit is contained in:
parent
6cab331db0
commit
68b3e2c71a
|
@ -174,9 +174,10 @@ public class Validator {
|
|||
int lowerBound = entry.getValue();
|
||||
|
||||
// int upperBound = fieldsMandatoryUpperBoundMap.get(entry.getKey());
|
||||
String maxOccurs = metadataFieldMap.get(entry.getKey()).getMaxOccurs();
|
||||
int upperBound = Integer.MAX_VALUE;
|
||||
if(maxOccurs.compareTo("*")==0) {
|
||||
try {
|
||||
String maxOccurs = metadataFieldMap.get(entry.getKey()).getMaxOccurs();
|
||||
if(maxOccurs==null || maxOccurs.compareTo("*")==0) {
|
||||
upperBound = Integer.MAX_VALUE;
|
||||
}else {
|
||||
try {
|
||||
|
@ -185,6 +186,9 @@ public class Validator {
|
|||
|
||||
}
|
||||
}
|
||||
}catch (Exception e) {
|
||||
upperBound = Integer.MAX_VALUE;
|
||||
}
|
||||
|
||||
int inserted = numberFieldsMandatorySameKeyMap.get(entry.getKey());
|
||||
|
||||
|
|
Loading…
Reference in New Issue