FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 2.0.3

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
17 17 0 0

org.apache.maven.wagon.providers.ssh.AbstractEmbeddedScpWagonWithKeyTest

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.providers.ssh.AbstractEmbeddedScpWagonWithKeyTest.testWithSpaces() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 119 Medium

org.apache.maven.wagon.providers.ssh.ScpCommand

Bug Category Details Line Priority
Dead store to perms in org.apache.maven.wagon.providers.ssh.ScpCommand.writeDir(String, SshFile) STYLE DLS_DEAD_LOCAL_STORE 333 Medium
Dead store to perms in org.apache.maven.wagon.providers.ssh.ScpCommand.writeFile(String, SshFile) STYLE DLS_DEAD_LOCAL_STORE 397 Medium
Found reliance on default encoding in org.apache.maven.wagon.providers.ssh.ScpCommand.readDir(SshFile): String.getBytes() I18N DM_DEFAULT_ENCODING 531 High
Found reliance on default encoding in org.apache.maven.wagon.providers.ssh.ScpCommand.readFile(SshFile): String.getBytes() I18N DM_DEFAULT_ENCODING 490 High
Found reliance on default encoding in org.apache.maven.wagon.providers.ssh.ScpCommand.readLine(): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 462 High
Found reliance on default encoding in org.apache.maven.wagon.providers.ssh.ScpCommand.run(): String.getBytes() I18N DM_DEFAULT_ENCODING 240 High
Switch statement found in org.apache.maven.wagon.providers.ssh.ScpCommand.run() where one case falls through to the next case STYLE SF_SWITCH_FALLTHROUGH 192-194 Medium

org.apache.maven.wagon.providers.ssh.ShellCommand

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.wagon.providers.ssh.ShellCommand.start(Environment): String.getBytes() I18N DM_DEFAULT_ENCODING 132 High
Unread field: org.apache.maven.wagon.providers.ssh.ShellCommand.in PERFORMANCE URF_UNREAD_FIELD 64 Medium
Unused field: org.apache.maven.wagon.providers.ssh.ShellCommand.thread PERFORMANCE UUF_UNUSED_FIELD Not available Medium

org.apache.maven.wagon.providers.ssh.SshServerEmbedded

Bug Category Details Line Priority
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.wagon.providers.ssh.SshServerEmbedded.start() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 107 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.wagon.providers.ssh.SshServerEmbedded.start() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 105 Medium
Unread field: org.apache.maven.wagon.providers.ssh.SshServerEmbedded.sshKeysResources PERFORMANCE URF_UNREAD_FIELD 57 Medium
Unread field: org.apache.maven.wagon.providers.ssh.SshServerEmbedded.wagonProtocol PERFORMANCE URF_UNREAD_FIELD 72 Medium

org.apache.maven.wagon.providers.ssh.TestPublickeyAuthenticator

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.wagon.providers.ssh.TestPublickeyAuthenticator.decodePublicKey(String): String.getBytes() I18N DM_DEFAULT_ENCODING 127 High
Found reliance on default encoding in org.apache.maven.wagon.providers.ssh.TestPublickeyAuthenticator.decodeType(): new String(byte[], int, int) I18N DM_DEFAULT_ENCODING 162 High