Ignore:
Timestamp:
2014-02-01T03:18:43+01:00 (10 years ago)
Author:
Don-vip
Message:

fix some Sonar issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java

    r6317 r6798  
    4141 */
    4242public final class OrthogonalizeAction extends JosmAction {
    43     private String USAGE = tr(
     43    private static final String USAGE = tr(
    4444            "<h3>When one or more ways are selected, the shape is adjusted such, that all angles are 90 or 180 degrees.</h3>"+
    4545            "You can add two nodes to the selection. Then, the direction is fixed by these two reference nodes. "+
     
    279279            throw new InvalidUserInputException(
    280280                    tr("<html>Please make sure all selected ways head in a similar direction<br>"+
    281                     "or orthogonalize them one by one.</html>"));
     281                    "or orthogonalize them one by one.</html>"), ex);
    282282        }
    283283
     
    439439                    direction = direction.changeBy(angleToDirectionChange(h2 - h1, TOLERANCE1));
    440440                } catch (RejectedAngleException ex) {
    441                     throw new InvalidUserInputException(tr("Please select ways with angles of approximately 90 or 180 degrees."));
     441                    throw new InvalidUserInputException(tr("Please select ways with angles of approximately 90 or 180 degrees."), ex);
    442442                }
    443443                segDirections[i+1] = direction;
     
    574574            super(message);
    575575        }
     576        InvalidUserInputException(String message, Throwable cause) {
     577            super(message, cause);
     578        }
    576579        InvalidUserInputException() {
    577580            super();
Note: See TracChangeset for help on using the changeset viewer.