Skip to content

Commit 8eef0de

Browse files
author
stoecker
committed
remove most of the new PMD messages (forgot to save one file befor submit :-)
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19296 0c6e7542-c601-0410-84e7-c038aed88b3b
1 parent c5c5355 commit 8eef0de

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,13 @@ public String getModeHelpText() {
198198
// TODO: add more detailed feedback based on modifier state.
199199
// TODO: dynamic messages based on preferences. (Could be problematic translation wise)
200200
switch (mode) {
201-
case NORMAL:
201+
if (mode == NORMAL) {
202202
// CHECKSTYLE.OFF: LineLength
203203
return tr("Select ways as in Select mode. Drag selected ways or a single way to create a parallel copy (Alt toggles tag preservation)");
204204
// CHECKSTYLE.ON: LineLength
205-
case DRAGGING:
205+
} else { // mode == DRAGGING
206206
return tr("Hold Ctrl to toggle snapping");
207207
}
208-
return ""; // impossible ..
209208
}
210209

211210
@Override

0 commit comments

Comments
 (0)