changeset 8936:93ea282c33e8

Fixed: introducing the varargs method did brerak some old behaviour, distinguish with method name
author gernotbelger
date Tue, 06 Mar 2018 17:07:27 +0100
parents 3ac9cb0029b2
children 8596f95673b1
files artifacts/src/main/java/org/dive4elements/river/exports/AbstractExporter.java
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/AbstractExporter.java	Tue Mar 06 17:06:47 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/AbstractExporter.java	Tue Mar 06 17:07:27 2018 +0100
@@ -300,14 +300,18 @@
         return Resources.getMsg(context.getMeta(), key, def);
     }
 
-    protected String msg(final String key, final Object... args) {
+    protected String msg(String key, Object[] args) {
         return Resources.getMsg(context.getMeta(), key, key, args);
     }
 
-    protected String msg(final String key, final String def, final Object args) {
+    protected String msg(String key, String def, Object[] args) {
         return Resources.getMsg(context.getMeta(), key, def, args);
     }
-    
+
+    protected String msgVarg(final String key, final Object... args) {
+        return Resources.getMsg(context.getMeta(), key, key, args);
+    }
+
     /**
      * Formats header with unit: msg [unit]
      */

http://dive4elements.wald.intevation.org