[NETCONF-50] local variables to be declared final Created: 30/Jun/15 Updated: 15/Mar/19 Resolved: 12/Oct/18 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Shashidhar Shekar | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Description |
|
as a good practice it is better to declare local variables that are assigned only once as final eg. class --> public final class NetconfMessageUtil method --> public static Collection<String> extractCapabilitiesFromHello(Document doc) variable --> |
| Comments |
| Comment by Robert Varga [ 13/Nov/15 ] |
|
Move to NETCONFI project. |
| Comment by Dhevendran Kulandaivel [ 18/May/16 ] |
|
(In reply to Robert Varga from comment #1) Hi Shashidhar Shekar I can work on this. Can you provide more details. I am not able to see the actual issue you are mentioning (i.e. extractCapabilitiesFromHello() is not local variable) in your example Thanks & Regards, |
| Comment by Jakub Morvay [ 12/Oct/18 ] |
|
This is already done, see: |