Ignore:
Timestamp:
2016-05-16T14:59:34+02:00 (8 years ago)
Author:
Don-vip
Message:

findbugs: SC_START_IN_CTOR + UW_UNCOND_WAIT + UM_UNNECESSARY_MATH + UPM_UNCALLED_PRIVATE_METHOD + DM_STRING_TOSTRING + DM_BOXED_PRIMITIVE_FOR_COMPARE + SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS

File:
1 edited

Legend:

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

    r10181 r10228  
    896896
    897897    /**
    898      * if one of the ends of {@code way} is given {@code  node},
    899      * then set  currentBaseNode = node and previousNode = adjacent node of way
     898     * if one of the ends of {@code way} is given {@code node},
     899     * then set currentBaseNode = node and previousNode = adjacent node of way
    900900     * @param way way to continue
    901901     * @param node starting node
     
    16921692        }
    16931693
    1694         private void nextSnapMode() {
    1695             if (snapOn) {
    1696                 // turn off snapping if we are in fixed mode or no actile snapping line exist
    1697                 if (fixed || !active) {
    1698                     snapOn = false;
    1699                     unsetFixedMode();
    1700                 } else {
    1701                     setFixedMode();
    1702                 }
    1703             } else {
    1704                 snapOn = true;
    1705                 unsetFixedMode();
    1706             }
    1707             checkBox.setState(snapOn);
    1708             customBaseHeading = -1;
    1709         }
    1710 
    17111694        private void enableSnapping() {
    17121695            snapOn = true;
     
    17291712        }
    17301713
    1731         public  void unsetFixedMode() {
     1714        public void unsetFixedMode() {
    17321715            fixed = false;
    17331716            absoluteFix = false;
     
    17361719        }
    17371720
    1738         public  boolean isActive() {
     1721        public boolean isActive() {
    17391722            return active;
    17401723        }
    17411724
    1742         public  boolean isSnapOn() {
     1725        public boolean isSnapOn() {
    17431726            return snapOn;
    17441727        }
Note: See TracChangeset for help on using the changeset viewer.