diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/FlowVelocityCalculation.java @ 7261:a56fe3bc6700

Refactoring: Let RiverAccess.getRiver return an River. Renamed getRiver in getRiverName. Update Callers.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 08 Oct 2013 14:50:58 +0200
parents af13ceeba52a
children be0e3b93144c
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/FlowVelocityCalculation.java	Tue Oct 08 12:07:18 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/FlowVelocityCalculation.java	Tue Oct 08 14:50:58 2013 +0200
@@ -98,7 +98,7 @@
         FlowVelocityAccess  access,
         List<DischargeZone> zones
     ) {
-        String riverName = access.getRiver();
+        String riverName = access.getRiverName();
         if (riverName == null) {
             logger.warn("No river name found");
             return Collections.<FlowVelocityModel>emptyList();

http://dive4elements.wald.intevation.org