Skip to content

[PPP-502] TKMS - Add decorator for message headers #210

[PPP-502] TKMS - Add decorator for message headers

[PPP-502] TKMS - Add decorator for message headers #210

GitHub Actions / Spotbugs Report-(3.2.2) completed Aug 6, 2024 in 0s

SpotBugs Source Code Analyzer report

2 violation(s) found

Annotations

Check warning on line 61 in tw-tkms-starter/src/test/java/com/transferwise/kafka/tkms/MessageDecorationTest.java

See this annotation in the file changed.

@github-actions github-actions / Spotbugs Report-(3.2.2)

DM_DEFAULT_ENCODING

Found reliance on default encoding in com.transferwise.kafka.tkms.MessageDecorationTest.lambda$checkForHeader$2(String, String, Header): new String(byte[])
Raw output
Found a call to a method which will perform a byte to String (or String to byte) conversion, and will assume that the default platform encoding is suitable. This will cause the application behavior to vary between platforms. Use an alternative API and specify a charset name or Charset object explicitly.

Check warning on line 14 in tw-tkms-starter/src/test/java/com/transferwise/kafka/tkms/test/TestMessageDecorator.java

See this annotation in the file changed.

@github-actions github-actions / Spotbugs Report-(3.2.2)

DM_DEFAULT_ENCODING

Found reliance on default encoding in com.transferwise.kafka.tkms.test.TestMessageDecorator.getHeaders(TkmsMessage): String.getBytes()
Raw output
Found a call to a method which will perform a byte to String (or String to byte) conversion, and will assume that the default platform encoding is suitable. This will cause the application behavior to vary between platforms. Use an alternative API and specify a charset name or Charset object explicitly.