Skip to content

Commit

Permalink
WCAG validation. Update type of nonDrawingArtifacts to ArrayList
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Sep 14, 2024
1 parent 10cb7f0 commit dcf895e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ChunkParser {
private final GraphicsState graphicsState;
private final Path path = new Path();
private final List<IChunk> artifacts = new LinkedList<>();
private List<Object> nonDrawingArtifacts = new LinkedList<>();
private List<Object> nonDrawingArtifacts = new ArrayList<>();
private final LineArtContainer lineArtContainer;
private final COSKey parentObjectKey;
private final Long parentMarkedContent;
Expand Down Expand Up @@ -430,7 +430,7 @@ public void parseChunk(Operator rawOperator, List<COSBase> arguments) {
processB();
break;
case Operators.N:
nonDrawingArtifacts = new LinkedList<>();
nonDrawingArtifacts = new ArrayList<>();
break;
case Operators.S_CLOSE_STROKE:
processh();
Expand Down Expand Up @@ -543,7 +543,7 @@ private void processB() {
}
}
}
nonDrawingArtifacts = new LinkedList<>();
nonDrawingArtifacts = new ArrayList<>();
}

private void processS() {
Expand Down Expand Up @@ -572,7 +572,7 @@ private void processS() {
}
}
}
nonDrawingArtifacts = new LinkedList<>();
nonDrawingArtifacts = new ArrayList<>();
}

private void processf() {
Expand All @@ -598,7 +598,7 @@ private void processf() {
graphicsState.getLineWidth()).getBoundingBox());
}
}
nonDrawingArtifacts = new LinkedList<>();
nonDrawingArtifacts = new ArrayList<>();
}

private LineChunk parsingRectangleFromLines(int i) {
Expand Down

0 comments on commit dcf895e

Please sign in to comment.