Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
7260:0b32f8980fed | 7261:a56fe3bc6700 |
---|---|
96 | 96 |
97 protected List<FlowVelocityModel> getFlowVelocityModels( | 97 protected List<FlowVelocityModel> getFlowVelocityModels( |
98 FlowVelocityAccess access, | 98 FlowVelocityAccess access, |
99 List<DischargeZone> zones | 99 List<DischargeZone> zones |
100 ) { | 100 ) { |
101 String riverName = access.getRiver(); | 101 String riverName = access.getRiverName(); |
102 if (riverName == null) { | 102 if (riverName == null) { |
103 logger.warn("No river name found"); | 103 logger.warn("No river name found"); |
104 return Collections.<FlowVelocityModel>emptyList(); | 104 return Collections.<FlowVelocityModel>emptyList(); |
105 } | 105 } |
106 | 106 |