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:
parent
0eb2352411
commit
8e978c0423
@ -107,8 +107,12 @@ private void list() {
|
|||||||
|
|
||||||
String description = command.getDescription();
|
String description = command.getDescription();
|
||||||
|
|
||||||
print(" ");
|
StringBuilder sb = new StringBuilder();
|
||||||
println(resource.getString(Constants.RES_HELP_CMD_DESCRIPTION), paddedName, paddedShortcut, description);
|
sb.append(" ")
|
||||||
|
.append(MessageFormat.format(resource.getString(Constants
|
||||||
|
.RES_HELP_CMD_DESCRIPTION), paddedName,
|
||||||
|
paddedShortcut, description));
|
||||||
|
println(sb.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
println();
|
println();
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
import java.text.MessageFormat;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
@ -173,11 +174,11 @@ public static void printlnResource(String resourceName) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void printlnResource(String resourceName, Object... values) {
|
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) {
|
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) {
|
public static void println(String str) {
|
||||||
|
Loading…
Reference in New Issue
Block a user