5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-04 20:30:06 +08:00

Revert "SQOOP-1233. Remove unnecessary explicit call to MessageFormat."

This reverts commit f3a2c576ed.
This commit is contained in:
Jarek Jarcec Cecho 2014-03-18 14:07:13 -07:00
parent 0eb2352411
commit 8e978c0423
2 changed files with 9 additions and 4 deletions

View File

@ -107,8 +107,12 @@ private void list() {
String description = command.getDescription();
print(" ");
println(resource.getString(Constants.RES_HELP_CMD_DESCRIPTION), paddedName, paddedShortcut, description);
StringBuilder sb = new StringBuilder();
sb.append(" ")
.append(MessageFormat.format(resource.getString(Constants
.RES_HELP_CMD_DESCRIPTION), paddedName,
paddedShortcut, description));
println(sb.toString());
}
println();

View File

@ -25,6 +25,7 @@
import java.net.MalformedURLException;
import java.net.URL;
import java.text.MessageFormat;
import java.util.Locale;
import java.util.ResourceBundle;
@ -173,11 +174,11 @@ public static void printlnResource(String resourceName) {
}
public static void printlnResource(String resourceName, Object... values) {
io.out.printf(resourceString(resourceName), values);
io.out.println(MessageFormat.format(resourceString(resourceName), values));
}
public static void println(String str, Object ... values) {
io.out.printf(str, values);
io.out.println(MessageFormat.format(str, values));
}
public static void println(String str) {