[PATCH 2 of 2] Fixed: introducing the varargs method did brerak some old behaviour, distinguish with method name
Wald Commits
scm-commit at wald.intevation.org
Tue Mar 6 17:07:34 CET 2018
# HG changeset patch
# User gernotbelger
# Date 1520352447 -3600
# Node ID 93ea282c33e8bd4137535d51ba42ba8042bdff09
# Parent 3ac9cb0029b2be08f399921077c82a748c5cb22c
Fixed: introducing the varargs method did brerak some old behaviour, distinguish with method name
diff -r 3ac9cb0029b2 -r 93ea282c33e8 artifacts/src/main/java/org/dive4elements/river/exports/AbstractExporter.java
--- 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]
*/
More information about the Dive4Elements-commits
mailing list