Skip to content

Commit

Permalink
spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuism committed Nov 26, 2024
1 parent c7fad63 commit e53ea8c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
<version>4.8.6</version>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down Expand Up @@ -109,7 +115,7 @@
<executions>
<execution>
<id>check</id>
<phase>validate</phase>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/nl/ictu/Token.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public final class Identifier {
private String value;
}

private final String version = "v1";
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings("SS_SHOULD_BE_STATIC")
private String version = "v1";

private String recipientOIN;
private Identifier identifier = new Identifier();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/nl/ictu/service/CryptographerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public String decrypt(final String ciphertextWithIv) throws NoSuchPaddingExcepti

byte[] decryptedText = cipher.doFinal(ciphertext);

return new String(decryptedText);
return new String(decryptedText, StandardCharsets.UTF_8);

}

Expand Down

0 comments on commit e53ea8c

Please sign in to comment.