Skip to content
Snippets Groups Projects
Commit b010cc8a authored by Hiro's avatar Hiro :surfer:
Browse files

Fix checks

parent dd2de60a
No related branches found
No related tags found
1 merge request!9Optimize function that is causing OOM errors
Pipeline #211376 passed
......@@ -302,7 +302,8 @@ public class ReferenceChecker {
// Second pass: check for missing descriptors
for (Reference reference : this.references) {
if (reference.referenced.length() > 0 && !knownDescriptors.contains(reference.referenced)) {
if (reference.referenced.length() > 0
&& !knownDescriptors.contains(reference.referenced)) {
totalMissingDescriptorsWeight += reference.weight;
sb.append(String.format("%n%s -> %s (%.4f -> %.4f)",
reference.referencing, reference.referenced, reference.weight,
......@@ -315,7 +316,8 @@ public class ReferenceChecker {
// Warn if the total missing descriptors weight exceeds the threshold
if (totalMissingDescriptorsWeight > 0.999) {
logger.warn("Missing too many referenced descriptors ({}).", totalMissingDescriptorsWeight);
logger.warn("Missing too many referenced descriptors ({}).",
totalMissingDescriptorsWeight);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment