From eda71de8d3756ac8e86e57a871fd76d896b6b619 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 27 Sep 2006 16:59:38 +0000 Subject: [PATCH] Added another method that's booching GG games. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4383 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/util/MessageBundle.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/java/com/threerings/util/MessageBundle.java b/src/java/com/threerings/util/MessageBundle.java index 19b1ad0e3..3fe7062d6 100644 --- a/src/java/com/threerings/util/MessageBundle.java +++ b/src/java/com/threerings/util/MessageBundle.java @@ -84,19 +84,25 @@ public class MessageBundle * with an array of arguments that will be automatically tainted (see * {@link #taint}). */ + public static String tcompose (String key, Object... args) + { + return MessageUtil.tcompose(key, args); + } + + /** + * Required for backwards compatibility. Alas. + */ public static String tcompose (String key, Object arg) { return MessageUtil.tcompose(key, new Object[] { arg }); } /** - * A convenience method for calling {@link #compose(String,Object[])} - * with an array of arguments that will be automatically tainted (see - * {@link #taint}). + * Required for backwards compatibility. Alas. */ - public static String tcompose (String key, Object... args) + public static String tcompose (String key, Object arg1, Object arg2) { - return MessageUtil.tcompose(key, args); + return MessageUtil.tcompose(key, new Object[] { arg1, arg2 }); } /**