[PATCH 1 of 2] Using varargs for msg arguments

Wald Commits scm-commit at wald.intevation.org
Thu Jul 12 18:10:06 CEST 2018


# HG changeset patch
# User mschaefer
# Date 1531411378 -7200
# Node ID 4082b84293533604a9ed8e9d17780498a024edc6
# Parent  b64cf2f5f719548277c2e645ef08c9a3379823ae
Using varargs for msg arguments

diff -r b64cf2f5f719 -r 4082b8429353 artifacts/src/main/java/org/dive4elements/river/exports/AbstractChartGenerator.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/AbstractChartGenerator.java	Thu Jul 12 15:30:32 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/AbstractChartGenerator.java	Thu Jul 12 18:02:58 2018 +0200
@@ -721,7 +721,7 @@
         return Resources.getMsg(this.context.getMeta(), key, key);
     }
 
-    public final String msg(final String key, final String def, final Object[] args) {
+    public final String msg(final String key, final String def, final Object... args) {
         return Resources.getMsg(this.context.getMeta(), key, def, args);
     }
 


More information about the Dive4Elements-commits mailing list