DM-483 - Prevent endless loops

* cleanups and renaming redaction log to entity log
This commit is contained in:
Andrei Isvoran 2023-10-12 15:15:37 +03:00
parent 5cf8a06761
commit 700383cfbd

View File

@ -96,13 +96,13 @@ public class AnnotationService {
}
private Map<Integer, List<EntityLogEntry>> groupingByPageNumber(EntityLog redactionLog) {
private Map<Integer, List<EntityLogEntry>> groupingByPageNumber(EntityLog entityLog) {
Map<Integer, List<EntityLogEntry>> entityLogPerPage = new HashMap<>();
if (redactionLog == null) {
if (entityLog == null) {
return entityLogPerPage;
}
for (EntityLogEntry entry : redactionLog.getEntityLogEntry()) {
for (EntityLogEntry entry : entityLog.getEntityLogEntry()) {
int page = 0;
for (Position position : entry.getPositions()) {
if (position.getPageNumber() != page) {