changeset 8849:e4aadc953665

Using varargs for message arguments
author gernotbelger
date Thu, 18 Jan 2018 18:21:30 +0100
parents 4ba55fae5ef3
children 6823991e1ed1
files artifacts/src/main/java/org/dive4elements/river/artifacts/resources/Resources.java
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/resources/Resources.java	Thu Jan 18 17:59:39 2018 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/resources/Resources.java	Thu Jan 18 18:21:30 2018 +0100
@@ -124,18 +124,18 @@
      * @return a translated string.
      */
     public static String getMsg(
-            CallMeta meta,
-            String   key,
-            String   def,
-            Object[] args)
+    		CallMeta meta,
+    		String   key,
+    		String   def,
+    		Object... args)
     {
-        String template = getMsg(meta, key, (String)null);
-
-        if (template == null) {
-            return def;
-        }
-
-        return format(meta, template, args);
+    	String template = getMsg(meta, key, (String)null);
+    	
+    	if (template == null) {
+    		return def;
+    	}
+    	
+    	return format(meta, template, args);
     }
 
     public static String format(

http://dive4elements.wald.intevation.org