View by Classes

Findings - Overview

warning method stores return result in local before immediately returning it (Findbugs)

Further info on the wiki.

This method stores the return result in a local variable, and then immediately returns the local variable. It would be simpler just to return the value that is assigned to the local variable, directly.

2org.jcoderz.commons.connector.http.HttpManagedConnectionImpl
method org.jcoderz.commons.connector.http.HttpManagedConnectionImpl.getMetaData() stores return result in local before immediately returning it [352],
method org.jcoderz.commons.connector.http.HttpManagedConnectionImpl.toString() stores return result in local before immediately returning it [804]
2org.jcoderz.commons.connector.http.transport.SslSocketFactory
method org.jcoderz.commons.connector.http.transport.SslSocketFactory.createSocket(String, int, InetAddress, int, HttpConnectionParams) stores return result in local before immediately returning it [254],
method org.jcoderz.commons.connector.http.transport.SslSocketFactory.getKeyManagers() stores return result in local before immediately returning it [160]
1org.jcoderz.commons.connector.http.HttpConnectionFactoryImpl
method org.jcoderz.commons.connector.http.HttpConnectionFactoryImpl.getConnectionHandle(HttpConnectionSpec) stores return result in local before immediately returning it [97]
1org.jcoderz.commons.logging.LogItem
method org.jcoderz.commons.logging.LogItem.getParameterValues(String) stores return result in local before immediately returning it [363]
1org.jcoderz.commons.util.JaxbUtil
method org.jcoderz.commons.util.JaxbUtil.marshal(Object, JAXBContext) stores return result in local before immediately returning it [164]
1org.jcoderz.phoenix.templategen.TemplateGeneratorServlet
method org.jcoderz.phoenix.templategen.TemplateGeneratorServlet.getTemplateDirectory() stores return result in local before immediately returning it [301]
1org.jcoderz.commons.taskdefs.XtremeDocs
method org.jcoderz.commons.taskdefs.XtremeDocs.buildTargetDir(String) stores return result in local before immediately returning it [771]
1org.jcoderz.commons.logging.LogViewer
method org.jcoderz.commons.logging.LogViewer.getPeriodsFromOptionValues(String[]) stores return result in local before immediately returning it [427]
1org.jcoderz.commons.connector.file.FsConnectionFactoryImpl
method org.jcoderz.commons.connector.file.FsConnectionFactoryImpl.allocateConnection(FsConnectionRequestInfo) stores return result in local before immediately returning it [162]