Skip to content

Commit

Permalink
Spotbugs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dsand47 committed May 20, 2019
1 parent 88edcb3 commit 925571e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/src/jmri/jmrit/display/layoutEditor/TrackSegment.java
Expand Up @@ -1721,23 +1721,23 @@ public ArrayList<String> getPointReferences(int type, LayoutTrack conn) {
if (type == 2) return lt.getBeanReferences("A"); // NOI18N
if (type == 3) return lt.getBeanReferences("B"); // NOI18N
if (type == 4) return lt.getBeanReferences("C"); // NOI18N
if (type == 5) return lt.getBeanReferences("D"); // NOI18N
return lt.getBeanReferences("D"); // NOI18N
}

if (type > 5 && type < 10 && conn instanceof LevelXing) {
LevelXing lx = (LevelXing) conn;
if (type == 6) return lx.getBeanReferences("A"); // NOI18N
if (type == 7) return lx.getBeanReferences("B"); // NOI18N
if (type == 8) return lx.getBeanReferences("C"); // NOI18N
if (type == 9) return lx.getBeanReferences("D"); // NOI18N
return lx.getBeanReferences("D"); // NOI18N
}

if (type > 20 && type < 25 && conn instanceof LayoutSlip) {
LayoutSlip ls = (LayoutSlip) conn;
if (type == 21) return ls.getBeanReferences("A"); // NOI18N
if (type == 22) return ls.getBeanReferences("B"); // NOI18N
if (type == 23) return ls.getBeanReferences("C"); // NOI18N
if (type == 24) return ls.getBeanReferences("D"); // NOI18N
return ls.getBeanReferences("D"); // NOI18N
}

return items;
Expand Down

0 comments on commit 925571e

Please sign in to comment.