comparison artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java @ 7644:f2f34d722807

Added two comments about improvements.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 04 Dec 2013 10:21:08 +0100
parents 1a20738e9a21
children feb23ab736f4
comparison
equal deleted inserted replaced
7643:a217de7ad762 7644:f2f34d722807
252 riverName = ""; 252 riverName = "";
253 } 253 }
254 254
255 logger.debug("Search for the min/max distances of '" + riverName + "'"); 255 logger.debug("Search for the min/max distances of '" + riverName + "'");
256 256
257 // Why not use getRiver(flysArtifact) ?
257 River river = RiverFactory.getRiver(riverName); 258 River river = RiverFactory.getRiver(riverName);
258 259
259 return river != null 260 return river != null
260 ? river.determineMinMaxDistance() 261 ? river.determineMinMaxDistance()
261 : null; 262 : null;
370 371
371 372
372 /** 373 /**
373 * Returns the selected River object based on the 'river' data that might 374 * Returns the selected River object based on the 'river' data that might
374 * have been inserted by the user. 375 * have been inserted by the user.
376 *
377 * @deprecated - use RiverAccess instead
375 * 378 *
376 * @return the selected River or null if no river has been chosen yet. 379 * @return the selected River or null if no river has been chosen yet.
377 */ 380 */
378 public static River getRiver(D4EArtifact flys) { 381 public static River getRiver(D4EArtifact flys) {
379 String sRiver = getRivername(flys); 382 String sRiver = getRivername(flys);

http://dive4elements.wald.intevation.org