Skip to content

Commit

Permalink
Try to use FindBugs specific SuppressFBWarnings annotation.
Browse files Browse the repository at this point in the history
Signed-off-by: Sjoerd Talsma <sjoerdtalsma@users.noreply.github.com>
  • Loading branch information
sjoerdtalsma committed Dec 30, 2022
1 parent 7f61459 commit a254211
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,12 @@
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>findbugs-annotations</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package nl.talsmasoftware.umldoclet.uml.plantuml;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import net.sourceforge.plantuml.FileFormat;
import net.sourceforge.plantuml.code.ArobaseStringCompressor;
import net.sourceforge.plantuml.code.AsciiEncoder;
Expand All @@ -30,7 +31,7 @@

import static java.util.Objects.requireNonNull;

@SuppressWarnings("URLCONNECTION_SSRF_FD") // Only allow HTTP(S) urls.
@SuppressFBWarnings(value = "URLCONNECTION_SSRF_FD", justification = "We only allow http(s) urls.")
public class RemotePlantumlGenerator implements PlantumlGenerator {
private static final String DEFAULT_PLANTUML_BASE_URL = "https://www.plantuml.com/plantuml/";
private static final Transcoder TRANSCODER =
Expand Down

0 comments on commit a254211

Please sign in to comment.