DM-483 - Prevent endless loops
* cleanups and renaming redaction log to entity log
This commit is contained in:
parent
5cf8a06761
commit
700383cfbd
@ -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<>();
|
Map<Integer, List<EntityLogEntry>> entityLogPerPage = new HashMap<>();
|
||||||
if (redactionLog == null) {
|
if (entityLog == null) {
|
||||||
return entityLogPerPage;
|
return entityLogPerPage;
|
||||||
}
|
}
|
||||||
for (EntityLogEntry entry : redactionLog.getEntityLogEntry()) {
|
for (EntityLogEntry entry : entityLog.getEntityLogEntry()) {
|
||||||
int page = 0;
|
int page = 0;
|
||||||
for (Position position : entry.getPositions()) {
|
for (Position position : entry.getPositions()) {
|
||||||
if (position.getPageNumber() != page) {
|
if (position.getPageNumber() != page) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user