Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

IJ feature that has always bugged me....

$
0
0

Often I end up creating a variable to return from a method like this:

 

List<StageCycleTime> cycleTimeForStages = processStageMetricsProvider.getCycleTimeForStages(stageCycleTime, startTime, endTime);

return cycleTimeForStages;

 

the only reason I create this return variable is so that I can see it in the debugger.  Of course IJ shows this as a code warning: "Local variable 'cycleTimeForStages' is redundant"

 

is there a better way to see this return variable other than creating one like this?


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>