Skip to content

[maven-release-plugin] prepare for next development iteration #98

[maven-release-plugin] prepare for next development iteration

[maven-release-plugin] prepare for next development iteration #98

GitHub Actions / spotbugs completed Oct 15, 2023 in 0s

SpotBugs Source Code Analyzer report

10 violation(s) found

Annotations

Check warning on line 22 in src/main/java/hudson/plugins/logparser/LogParserConsts.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

MS_MUTABLE_COLLECTION_PKGPROTECT

hudson.plugins.logparser.LogParserConsts.LEGAL_STATUS is a mutable collection which should be package protected
Raw output
A mutable collection instance is assigned to a final static field, thus can be changed by malicious code or by accident from another package. The field could be made package protected to avoid this vulnerability. Alternatively you may wrap this field into Collections.unmodifiableSet/List/Map/etc. to avoid this vulnerability.

Check warning on line 24 in src/main/java/hudson/plugins/logparser/LogParserConsts.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

MS_MUTABLE_COLLECTION_PKGPROTECT

hudson.plugins.logparser.LogParserConsts.STATUSES_WITH_SECTIONS_IN_LINK_FILES is a mutable collection which should be package protected
Raw output
A mutable collection instance is assigned to a final static field, thus can be changed by malicious code or by accident from another package. The field could be made package protected to avoid this vulnerability. Alternatively you may wrap this field into Collections.unmodifiableSet/List/Map/etc. to avoid this vulnerability.

Check warning on line 119 in src/main/java/hudson/plugins/logparser/LogParserParser.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserParser.parseLog(Run): new java.io.FileWriter(String)
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 118 in src/main/java/hudson/plugins/logparser/LogParserResult.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserResult.getReader(String): new java.io.FileReader(File)
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 148 in src/main/java/hudson/plugins/logparser/LogParserUtils.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserUtils.countLines(String): new java.io.FileReader(String)
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 134 in src/main/java/hudson/plugins/logparser/LogParserWriter.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserWriter.writeLinks(BufferedWriter, String, ArrayList, HashMap, HashMap, HashMap, HashMap, HashMap, HashMap): new java.io.FileReader(String)
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 60 in src/main/java/hudson/plugins/logparser/LogParserWriter.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserWriter.writeReferenceHtml(String, ArrayList, HashMap, HashMap, HashMap, HashMap, HashMap, HashMap, List): new java.io.FileWriter(String)
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 39 in src/main/java/hudson/plugins/logparser/LogParserWriter.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserWriter.writeWrapperHtml(String): new java.io.FileWriter(String)
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 23 in src/main/java/hudson/plugins/logparser/ReadWriteTextFile.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.ReadWriteTextFile.getContents(File): new java.io.FileReader(File)
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 58 in src/main/java/hudson/plugins/logparser/ReadWriteTextFile.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.ReadWriteTextFile.setContents(File, String): new java.io.FileWriter(File)
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 22 in src/main/java/hudson/plugins/logparser/LogParserConsts.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

MS_MUTABLE_COLLECTION_PKGPROTECT

hudson.plugins.logparser.LogParserConsts.LEGAL_STATUS is a mutable collection which should be package protected
Raw output
A mutable collection instance is assigned to a final static field, thus can be changed by malicious code or by accident from another package. The field could be made package protected to avoid this vulnerability. Alternatively you may wrap this field into Collections.unmodifiableSet/List/Map/etc. to avoid this vulnerability.

Check warning on line 24 in src/main/java/hudson/plugins/logparser/LogParserConsts.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

MS_MUTABLE_COLLECTION_PKGPROTECT

hudson.plugins.logparser.LogParserConsts.STATUSES_WITH_SECTIONS_IN_LINK_FILES is a mutable collection which should be package protected
Raw output
A mutable collection instance is assigned to a final static field, thus can be changed by malicious code or by accident from another package. The field could be made package protected to avoid this vulnerability. Alternatively you may wrap this field into Collections.unmodifiableSet/List/Map/etc. to avoid this vulnerability.

Check warning on line 119 in src/main/java/hudson/plugins/logparser/LogParserParser.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserParser.parseLog(Run): new java.io.FileWriter(String)
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 118 in src/main/java/hudson/plugins/logparser/LogParserResult.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserResult.getReader(String): new java.io.FileReader(File)
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 148 in src/main/java/hudson/plugins/logparser/LogParserUtils.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserUtils.countLines(String): new java.io.FileReader(String)
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 134 in src/main/java/hudson/plugins/logparser/LogParserWriter.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserWriter.writeLinks(BufferedWriter, String, ArrayList, HashMap, HashMap, HashMap, HashMap, HashMap, HashMap): new java.io.FileReader(String)
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 60 in src/main/java/hudson/plugins/logparser/LogParserWriter.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserWriter.writeReferenceHtml(String, ArrayList, HashMap, HashMap, HashMap, HashMap, HashMap, HashMap, List): new java.io.FileWriter(String)
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 39 in src/main/java/hudson/plugins/logparser/LogParserWriter.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserWriter.writeWrapperHtml(String): new java.io.FileWriter(String)
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 23 in src/main/java/hudson/plugins/logparser/ReadWriteTextFile.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.ReadWriteTextFile.getContents(File): new java.io.FileReader(File)
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 58 in src/main/java/hudson/plugins/logparser/ReadWriteTextFile.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.ReadWriteTextFile.setContents(File, String): new java.io.FileWriter(File)
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 22 in src/main/java/hudson/plugins/logparser/LogParserConsts.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

MS_MUTABLE_COLLECTION_PKGPROTECT

hudson.plugins.logparser.LogParserConsts.LEGAL_STATUS is a mutable collection which should be package protected
Raw output
A mutable collection instance is assigned to a final static field, thus can be changed by malicious code or by accident from another package. The field could be made package protected to avoid this vulnerability. Alternatively you may wrap this field into Collections.unmodifiableSet/List/Map/etc. to avoid this vulnerability.

Check warning on line 24 in src/main/java/hudson/plugins/logparser/LogParserConsts.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

MS_MUTABLE_COLLECTION_PKGPROTECT

hudson.plugins.logparser.LogParserConsts.STATUSES_WITH_SECTIONS_IN_LINK_FILES is a mutable collection which should be package protected
Raw output
A mutable collection instance is assigned to a final static field, thus can be changed by malicious code or by accident from another package. The field could be made package protected to avoid this vulnerability. Alternatively you may wrap this field into Collections.unmodifiableSet/List/Map/etc. to avoid this vulnerability.

Check warning on line 119 in src/main/java/hudson/plugins/logparser/LogParserParser.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserParser.parseLog(Run): new java.io.FileWriter(String)
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 118 in src/main/java/hudson/plugins/logparser/LogParserResult.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserResult.getReader(String): new java.io.FileReader(File)
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 148 in src/main/java/hudson/plugins/logparser/LogParserUtils.java

See this annotation in the file changed.

@github-actions github-actions / spotbugs

DM_DEFAULT_ENCODING

Found reliance on default encoding in hudson.plugins.logparser.LogParserUtils.countLines(String): new java.io.FileReader(String)
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.