Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/fixings/Fitting.java @ 6868:08e3c22500f3
Fix Analysis: Code simplification in facets.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Mon, 19 Aug 2013 16:29:28 +0200 |
parents | af13ceeba52a |
children | 83bb52fa0c32 |
comparison
equal
deleted
inserted
replaced
6867:0f3dad5d74a2 | 6868:08e3c22500f3 |
---|---|
119 | 119 |
120 public double getMaxQ() { | 120 public double getMaxQ() { |
121 double maxQ = -Double.MAX_VALUE; | 121 double maxQ = -Double.MAX_VALUE; |
122 if (referenced != null) { | 122 if (referenced != null) { |
123 for (QWI qw: referenced) { | 123 for (QWI qw: referenced) { |
124 if (qw.getQ() > maxQ) { | 124 double q = qw.getQ(); |
125 maxQ = qw.getQ(); | 125 if (q > maxQ) { |
126 maxQ = q; | |
126 } | 127 } |
127 } | 128 } |
128 } | 129 } |
129 return maxQ; | 130 return maxQ; |
130 } | 131 } |