Changeset 19094 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2024-05-31T22:28:49+02:00 (6 months ago)
Author:
stoecker
Message:

PMD and checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r19093 r19094  
    20672067     * @param s arbitrary string representing a length
    20682068     * @return the length converted to meters
     2069     * @throws IllegalArgumentException if input is no valid length
    20692070     * @since 19089
    20702071     */
     
    20942095                /* NOTE: we assume -a'b" means -(a'+b") and not (-a')+b" - because of such issues SI units have been invented
    20952096                   and have been adopted by the majority of the world */
    2096                 return (Double.valueOf(m.group(2))*0.3048+Double.valueOf(m.group(4))*0.0254)*(m.group(1).isEmpty()?1.0:-1.0);
     2097                return (Double.valueOf(m.group(2))*0.3048+Double.valueOf(m.group(4))*0.0254)*(m.group(1).isEmpty() ? 1.0 : -1.0);
    20972098            }
    20982099        }
Note: See TracChangeset for help on using the changeset viewer.