Changeset 14095 in josm
- Timestamp:
- 2018-08-05T21:58:40+02:00 (6 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build.xml
r14093 r14095 346 346 <!-- Undocumented argument to ignore "Sun internal proprietary API" warning, see http://stackoverflow.com/a/13862308/2257172 --> 347 347 <compilerarg value="-XDignore.symbol.file"/> 348 <compilerarg value="-Xep:CatchAndPrintStackTrace:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/> 348 349 <compilerarg value="-Xep:ReferenceEquality:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/> 349 350 <compilerarg value="-Xep:StringSplitter:OFF" compiler="com.google.errorprone.ErrorProneAntCompilerAdapter"/> -
trunk/src/org/openstreetmap/josm/data/Bounds.java
r13602 r14095 160 160 /** 161 161 * Constructs bounds out of two points. Coords will be rounded. 162 * @param min lat min lat163 * @param min lon min lon164 * @param max lat max lat165 * @param max lon max lon166 */ 167 public Bounds(double min lat, double minlon, double maxlat, double maxlon) {168 this(min lat, minlon, maxlat, maxlon, true);162 * @param minLat min lat 163 * @param minLon min lon 164 * @param maxLat max lat 165 * @param maxLon max lon 166 */ 167 public Bounds(double minLat, double minLon, double maxLat, double maxLon) { 168 this(minLat, minLon, maxLat, maxLon, true); 169 169 } 170 170 171 171 /** 172 172 * Constructs bounds out of two points. 173 * @param min lat min lat174 * @param min lon min lon175 * @param max lat max lat176 * @param max lon max lon173 * @param minLat min lat 174 * @param minLon min lon 175 * @param maxLat max lat 176 * @param maxLon max lon 177 177 * @param roundToOsmPrecision defines if lat/lon will be rounded 178 178 */ 179 public Bounds(double min lat, double minlon, double maxlat, double maxlon, boolean roundToOsmPrecision) {179 public Bounds(double minLat, double minLon, double maxLat, double maxLon, boolean roundToOsmPrecision) { 180 180 if (roundToOsmPrecision) { 181 this.minLat = LatLon.roundToOsmPrecision(min lat);182 this.minLon = LatLon.roundToOsmPrecision(min lon);183 this.maxLat = LatLon.roundToOsmPrecision(max lat);184 this.maxLon = LatLon.roundToOsmPrecision(max lon);185 } else { 186 this.minLat = min lat;187 this.minLon = min lon;188 this.maxLat = max lat;189 this.maxLon = max lon;181 this.minLat = LatLon.roundToOsmPrecision(minLat); 182 this.minLon = LatLon.roundToOsmPrecision(minLon); 183 this.maxLat = LatLon.roundToOsmPrecision(maxLat); 184 this.maxLon = LatLon.roundToOsmPrecision(maxLon); 185 } else { 186 this.minLat = minLat; 187 this.minLon = minLon; 188 this.maxLat = maxLat; 189 this.maxLon = maxLon; 190 190 } 191 191 } -
trunk/src/org/openstreetmap/josm/data/UserIdentityManager.java
r13493 r14095 241 241 * Replies true if the user with name <code>username</code> is the current user 242 242 * 243 * @param user name the user name243 * @param userName the user name 244 244 * @return true if the user with name <code>username</code> is the current user 245 245 */ 246 public boolean isCurrentUser(String user name) {247 return this.userName != null && this.userName.equals(user name);246 public boolean isCurrentUser(String userName) { 247 return this.userName != null && this.userName.equals(userName); 248 248 } 249 249 -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/LineElement.java
r13919 r14095 92 92 public final float defaultMajorZIndex; 93 93 94 LineType(String prefix, float defaultMajorZ index) {94 LineType(String prefix, float defaultMajorZIndex) { 95 95 this.prefix = prefix; 96 this.defaultMajorZIndex = defaultMajorZ index;96 this.defaultMajorZIndex = defaultMajorZIndex; 97 97 } 98 98 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/StyleElement.java
r13662 r14095 58 58 /** 59 59 * Construct a new StyleElement 60 * @param majorZ index like z-index, but higher priority60 * @param majorZIndex like z-index, but higher priority 61 61 * @param zIndex order the objects are drawn 62 * @param objectZ index like z-index, but lower priority62 * @param objectZIndex like z-index, but lower priority 63 63 * @param isModifier if false, a default line or node symbol is generated 64 64 * @param defaultSelectedHandling true if default behavior for selected objects 65 65 * is enabled, false if a style for selected state is given explicitly 66 66 */ 67 public StyleElement(float majorZ index, float zIndex, float objectZindex, boolean isModifier, boolean defaultSelectedHandling) {68 this.majorZIndex = majorZ index;67 public StyleElement(float majorZIndex, float zIndex, float objectZIndex, boolean isModifier, boolean defaultSelectedHandling) { 68 this.majorZIndex = majorZIndex; 69 69 this.zIndex = zIndex; 70 this.objectZIndex = objectZ index;70 this.objectZIndex = objectZIndex; 71 71 this.isModifier = isModifier; 72 72 this.defaultSelectedHandling = defaultSelectedHandling; -
trunk/src/org/openstreetmap/josm/io/ChangesetQuery.java
r14040 r14095 107 107 * {@link #forUser(int)} to restrict the query to a specific user. 108 108 * 109 * @param user name the username. Must not be null.109 * @param userName the username. Must not be null. 110 110 * @return the query object with the applied restriction 111 111 * @throws IllegalArgumentException if username is null. 112 112 * @see #forUser(int) 113 113 */ 114 public ChangesetQuery forUser(String user name) {115 CheckParameterUtil.ensureParameterNotNull(user name, "username");116 this.userName = user name;114 public ChangesetQuery forUser(String userName) { 115 CheckParameterUtil.ensureParameterNotNull(userName, "userName"); 116 this.userName = userName; 117 117 this.uid = null; 118 118 return this; -
trunk/src/org/openstreetmap/josm/io/audio/AudioPlayer.java
r13819 r14095 352 352 353 353 @Override 354 public void playing(URL playingU RL) {355 this.playingUrl = playingU RL;354 public void playing(URL playingUrl) { 355 this.playingUrl = playingUrl; 356 356 } 357 357 } -
trunk/src/org/openstreetmap/josm/tools/bugreport/ReportedException.java
r13647 r14095 72 72 BugReportQueue.getInstance().submit(this); 73 73 } catch (RuntimeException e) { // NOPMD 74 e.printStackTrace();74 Logging.error(e); 75 75 } 76 76 }
Note:
See TracChangeset
for help on using the changeset viewer.