| Author | djarvis <email> |
|---|---|
| Date | 2016-12-29 12:07:24 GMT-0800 |
| Commit | 966ba87d90f53b6b2c67a680273549496e25c4fd |
| Parent | b12479f |
| Delta | 11 lines added, 4 lines removed, 7-line increase |
| */ | ||
| private TreeItem<String> sanitize( final TreeItem<String> item ) { | ||
| - final TreeItem<String> result = item == getTreeRoot() | ||
| - ? getFirst( item.getChildren() ) | ||
| - : item; | ||
| + TreeItem<String> result; | ||
| - return result == null ? item : result; | ||
| + if( item == null ) { | ||
| + result = getTreeRoot(); | ||
| + } | ||
| + else { | ||
| + result = item == getTreeRoot() | ||
| + ? getFirst( item.getChildren() ) | ||
| + : item; | ||
| + } | ||
| + | ||
| + return result; | ||
| } | ||