Skip to content

Commit

Permalink
Suppress some old warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Apr 13, 2024
1 parent 601ea3b commit 9281180
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import edu.hm.hafner.analysis.ParsingException;
import edu.hm.hafner.analysis.Severity;
import edu.hm.hafner.util.LookaheadStream;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

import static edu.hm.hafner.analysis.util.IntegerParser.*;

Expand Down Expand Up @@ -40,7 +41,7 @@ public DrMemoryParser() {
super(DR_MEMORY_WARNING_PATTERN);
}

@Override
@Override @SuppressFBWarnings(value = "POTENTIAL_XML_INJECTION", justification = "Message is cleaned in UI")
protected Optional<Issue> createIssue(final Matcher matcher, final LookaheadStream lookahead,
final IssueBuilder builder)
throws ParsingException {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/edu/hm/hafner/analysis/parser/MentorParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import edu.hm.hafner.analysis.IssueBuilder;
import edu.hm.hafner.analysis.LookaheadParser;
import edu.hm.hafner.util.LookaheadStream;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

/**
* Parser for Mentor Graphics Modelsim/Questa Simulator.
Expand Down Expand Up @@ -125,6 +126,7 @@ private void parseVsimMessage(final LookaheadStream lookahead, final IssueBuilde
builder.setMessage(parsedMessage);
}

@SuppressFBWarnings(value = "POTENTIAL_XML_INJECTION", justification = "Message is cleaned in UI")
private String parseSimTime(final LookaheadStream lookahead, final IssueBuilder builder) {
StringBuilder description = new StringBuilder();
String timeLine = "";
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/edu/hm/hafner/analysis/parser/RevApiParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import edu.hm.hafner.analysis.Report;
import edu.hm.hafner.analysis.RevApiInfoExtension;
import edu.hm.hafner.analysis.Severity;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

/**
* Parser for Revapi reports.
Expand Down Expand Up @@ -102,6 +103,7 @@ private Severity toSeverity(final String level) {
}
}

@SuppressFBWarnings(value = "POTENTIAL_XML_INJECTION", justification = "Message is cleaned in UI")
private String getDescription(final JSONObject jsonIssue) {
StringBuilder severityDescription = new StringBuilder(CAPACITY);
for (Object severity : jsonIssue.getJSONArray("classification")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
import edu.hm.hafner.analysis.LookaheadParser;
import edu.hm.hafner.analysis.Severity;
import edu.hm.hafner.util.LookaheadStream;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

/**
* A parser for IBM xlC compiler warnings.
*
* @author Andrew Gvozdev
*/
@SuppressFBWarnings("REDOS")
public class XlcCompilerParser extends LookaheadParser {
private static final long serialVersionUID = 5490211629355204910L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
import edu.hm.hafner.analysis.LookaheadParser;
import edu.hm.hafner.analysis.Severity;
import edu.hm.hafner.util.LookaheadStream;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

/**
* A parser for IBM xlC linker warnings.
*
* @author Andrew Gvozdev
*/
@SuppressFBWarnings("REDOS")
public class XlcLinkerParser extends LookaheadParser {
private static final long serialVersionUID = 211259620936831096L;
private static final String XLC_LINKER_WARNING_PATTERN = ANT_TASK + "ld: ([0-9]+-[0-9]+)*\\s*(.*)$";
Expand Down

0 comments on commit 9281180

Please sign in to comment.