[
https://issues.apache.org/jira/browse/JSPWIKI-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17419637#comment-17419637
]
Jürgen Weber commented on JSPWIKI-1153:
---------------------------------------
x = method()
return x;
versus
return method();
The second is cooler and looks better, the first you can debug. You can set a
breakpoint on the return line and see what is returned.
> Inline Variable
> ---------------
>
> Key: JSPWIKI-1153
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1153
> Project: JSPWiki
> Issue Type: Improvement
> Reporter: Arturo Bernal
> Priority: Minor
> Labels: pull-request-available
>
> Remove unnecessary local variables that are immediately returned or are
> immediately assigned to another variable and then not used.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)