Skip to content

Commit c3a8fd2

Browse files
committed
PDFBOX-5660: Sonar fix
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1924920 13f79535-47bb-0310-9956-ffa450edef68
1 parent f3bbee7 commit c3a8fd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationInk.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public FDFAnnotationInk(Element element) throws IOException
9595
if (node instanceof Element)
9696
{
9797
String gesture = node.getFirstChild().getNodeValue();
98-
String[] gestureValues = gesture.split(",|;");
98+
String[] gestureValues = gesture.split("[,;]");
9999
float[] values = new float[gestureValues.length];
100100
for (int j = 0; j < gestureValues.length; j++)
101101
{

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotationPolyline.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private void initVertices(Element element) throws IOException
9090
{
9191
throw new IOException("Error: missing element 'vertices'");
9292
}
93-
String[] verticesValues = vertices.split(",|;");
93+
String[] verticesValues = vertices.split("[,;]");
9494
float[] values = new float[verticesValues.length];
9595
for (int i = 0; i < verticesValues.length; i++)
9696
{

0 commit comments

Comments
 (0)