# HG changeset patch # User Sascha L. Teichmann # Date 1342711251 0 # Node ID f14206b4b6887f8a6f5d2919ebfafe8a104eaa22 # Parent e3c7a3228bc2007429ae0f83093854b9a3ec0a5d Small optimization. flys-artifacts/trunk@5069 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r e3c7a3228bc2 -r f14206b4b688 flys-artifacts/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/artifacts/model/fixings/FixResult.java: diff -r e3c7a3228bc2 -r f14206b4b688 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixFacetUtils.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; }