зеркало из https://github.com/github/sqoop.git
Revert "SQOOP-1233. Remove unnecessary explicit call to MessageFormat."
This reverts commit f3a2c576ed
.
This commit is contained in:
Родитель
0eb2352411
Коммит
8e978c0423
|
@ -107,8 +107,12 @@ public class HelpCommand extends CommandSupport {
|
|||
|
||||
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 org.codehaus.groovy.tools.shell.IO;
|
|||
|
||||
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 final class ShellEnvironment {
|
|||
}
|
||||
|
||||
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче