Skip to content
Permalink
Browse files

Spotbugs changes

  • Loading branch information...
dsand47 committed May 20, 2019
1 parent 88edcb3 commit 925571e857b8eea52f23af3c6569b0edbaa610dc
Showing with 3 additions and 3 deletions.
  1. +3 −3 java/src/jmri/jmrit/display/layoutEditor/TrackSegment.java
@@ -1721,23 +1721,23 @@ public boolean canRemoveTrackSegment(TrackSegment ts) {
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;

0 comments on commit 925571e

Please sign in to comment.
You can’t perform that action at this time.