Mercurial > dive4elements > river
changeset 3416:f14206b4b688
Small optimization.
flys-artifacts/trunk@5069 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 19 Jul 2012 15:20:51 +0000 |
parents | e3c7a3228bc2 |
children | ed9689fbcd26 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixFacetUtils.java |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Thu Jul 19 15:16:48 2012 +0000 +++ b/flys-artifacts/ChangeLog Thu Jul 19 15:20:51 2012 +0000 @@ -1,3 +1,8 @@ +2012-07-19 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/model/fixings/FixFacetUtils.java: + Use constant to lookup column instead of dynamically allocated array. + 2012-07-19 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/artifacts/model/fixings/FixResult.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixFacetUtils.java Thu Jul 19 15:16:48 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixFacetUtils.java Thu Jul 19 15:20:51 2012 +0000 @@ -4,8 +4,10 @@ public final class FixFacetUtils { + public static final String [] MAX_Q_COLUMN = { "max_q" }; + public static double getMaxQ(Parameters params, double km) { - double [] maxQ = params.interpolate("km", km, new String[] { "max_q" }); + double [] maxQ = params.interpolate("km", km, MAX_Q_COLUMN); if (maxQ == null) { return 1000d; }