Automated cleanup
--
MOS_MIGRATED_REVID=135816105
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/Printer.java b/src/main/java/com/google/devtools/build/lib/syntax/Printer.java
index 88abe13..af6515f 100644
--- a/src/main/java/com/google/devtools/build/lib/syntax/Printer.java
+++ b/src/main/java/com/google/devtools/build/lib/syntax/Printer.java
@@ -20,11 +20,9 @@
import com.google.devtools.build.lib.skylarkinterface.SkylarkValue;
import com.google.devtools.build.lib.syntax.SkylarkList.Tuple;
import com.google.devtools.build.lib.vfs.PathFragment;
-
import java.io.IOException;
import java.util.Formattable;
import java.util.Formatter;
-import java.util.IllegalFormatException;
import java.util.List;
import java.util.Map;
import java.util.MissingFormatWidthException;
@@ -443,8 +441,7 @@
* @param arguments positional arguments.
* @return the formatted string.
*/
- public static Formattable formattable(final String pattern, Object... arguments)
- throws IllegalFormatException {
+ public static Formattable formattable(final String pattern, Object... arguments) {
final ImmutableList<Object> args = ImmutableList.copyOf(arguments);
return new Formattable() {
@Override
@@ -466,8 +463,7 @@
* @param arguments a tuple containing positional arguments.
* @return the formatted string.
*/
- public static String format(String pattern, Object... arguments)
- throws IllegalFormatException {
+ public static String format(String pattern, Object... arguments) {
return formatToString(pattern, ImmutableList.copyOf(arguments));
}
@@ -478,8 +474,7 @@
* @param arguments a tuple containing positional arguments.
* @return the formatted string.
*/
- public static String formatToString(String pattern, List<?> arguments)
- throws IllegalFormatException {
+ public static String formatToString(String pattern, List<?> arguments) {
return formatTo(new StringBuilder(), pattern, arguments).toString();
}
@@ -493,8 +488,7 @@
* @return the buffer, in fluent style.
*/
// TODO(bazel-team): support formatting arguments, and more complex Python patterns.
- public static Appendable formatTo(Appendable buffer, String pattern, List<?> arguments)
- throws IllegalFormatException {
+ public static Appendable formatTo(Appendable buffer, String pattern, List<?> arguments) {
// N.B. MissingFormatWidthException is the only kind of IllegalFormatException
// whose constructor can take and display arbitrary error message, hence its use below.