Avoid unnecessarily creating local variablespublic class Foo { public int foo() { int x = doSomething(); return x; // instead, just 'return doSomething();' } }Additional info can be found at this http://pmd.sourceforge.net/rules/design.html#UnnecessaryLocalBeforeReturn site.
| 1 | org.jcoderz.commons.connector.http.transport.HttpClientConnectionTest |
| Consider simply returning the value vs storing it in local variable 'setup' [133:7] | |
| 1 | org.jcoderz.phoenix.templategen.TemplateGeneratorServlet |
| Consider simply returning the value vs storing it in local variable 'templateDir' [301:7] | |
| 1 | org.jcoderz.commons.util.IoUtilTest |
| Consider simply returning the value vs storing it in local variable 'in' [274:7] | |
| 1 | org.jcoderz.commons.connector.http.HttpConnectorBeanTest |
| Consider simply returning the value vs storing it in local variable 'setup' [80:7] | |
| 1 | org.jcoderz.commons.connector.http.transport.SslSocketFactory |
| Consider simply returning the value vs storing it in local variable 'managers' [160:7] | |
| 1 | org.jcoderz.phoenix.report.samples.SimplePmdFindings |
| Consider simply returning the value vs storing it in local variable 'x' (sample) [149:7] | |