You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2025/04/07 14:09:11 UTC
svn commit: r1924908 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/type4/InstructionSequenceBuilder.java
Author: tilman
Date: Mon Apr 7 14:09:11 2025
New Revision: 1924908
URL: http://svn.apache.org/viewvc?rev=1924908&view=rev
Log:
PDFBOX-5660: Sonar fix
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/type4/InstructionSequenceBuilder.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/type4/InstructionSequenceBuilder.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/type4/InstructionSequenceBuilder.java?rev=1924908&r1=1924907&r2=1924908&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/type4/InstructionSequenceBuilder.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/function/type4/InstructionSequenceBuilder.java Mon Apr 7 14:09:11 2025
@@ -27,7 +27,7 @@ import java.util.regex.Pattern;
public final class InstructionSequenceBuilder extends Parser.AbstractSyntaxHandler
{
private static final Pattern INTEGER_PATTERN = Pattern.compile("[\\+\\-]?\\d+");
- private static final Pattern REAL_PATTERN = Pattern.compile("[\\-]?\\d*\\.\\d*([Ee]\\-?\\d+)?");
+ private static final Pattern REAL_PATTERN = Pattern.compile("\\-?\\d*\\.\\d*([Ee]\\-?\\d+)?");
private final InstructionSequence mainSequence = new InstructionSequence();
private final Stack<InstructionSequence> seqStack = new Stack<InstructionSequence>();