RED-10200: fix failing acceptance, function tests
This commit is contained in:
parent
ef06d45efe
commit
dd545daeb7
@ -383,17 +383,17 @@ public class DocumentTree {
|
||||
for (TextEntity textEntity : entity.getDeepestFullyContainingNode().getEntities()) {
|
||||
if (entity.intersects(textEntity) && !entity.equals(textEntity) && !textEntity.getEntityType().equals(EntityType.TEMPORARY)) {
|
||||
if (textEntity.getTextRange().equals(entity.getTextRange())) {
|
||||
textEntity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Equality(entity, textEntity));
|
||||
textEntity.getRelations().computeIfAbsent(entity, k -> new HashSet<>()).add(new Equality(entity, textEntity));
|
||||
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Equality(textEntity, entity));
|
||||
} else if (textEntity.containedBy(entity)) {
|
||||
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Containment(entity, textEntity));
|
||||
textEntity.getRelations().computeIfAbsent(entity, k -> new HashSet<>()).add(new Intersection(textEntity, entity));
|
||||
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Containment(entity, textEntity));
|
||||
} else if (entity.containedBy(textEntity)) {
|
||||
textEntity.getRelations().computeIfAbsent(entity, k -> new HashSet<>()).add(new Containment(textEntity, entity));
|
||||
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Intersection(entity, textEntity));
|
||||
} else {
|
||||
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Intersection(entity, textEntity));
|
||||
textEntity.getRelations().computeIfAbsent(entity, k -> new HashSet<>()).add(new Intersection(textEntity, entity));
|
||||
entity.getRelations().computeIfAbsent(textEntity, k -> new HashSet<>()).add(new Intersection(entity, textEntity));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -8625,5 +8625,4 @@ Mustermann
|
||||
Lastname
|
||||
Bojangles
|
||||
Tambourine Man
|
||||
Tournayre J.C.
|
||||
Phillip
|
||||
Tournayre J.C.
|
||||
Loading…
x
Reference in New Issue
Block a user