mirror of
https://github.com/apache/sqoop.git
synced 2025-05-04 17:30:41 +08:00
Revert "SQOOP-1233. Remove unnecessary explicit call to MessageFormat."
This reverts commit f3a2c576ed
.
This commit is contained in:
parent
0eb2352411
commit
8e978c0423
@ -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();
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user