aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2015-03-05 10:41:46 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-03-05 18:31:26 +0000
commitf014b3c574b1a70942dac1a2dcdf9e86b8df5555 (patch)
treeec47ebefed90e43976816f6ec3c727d8dfc3c19a
parentcba3d7eff3d95b9557d1603955232ae1bca3806d (diff)
Remove extra .toString() calls from Bazel's Constants.
-- MOS_MIGRATED_REVID=87806484
-rw-r--r--src/main/java/com/google/devtools/build/lib/Constants.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/Constants.java b/src/main/java/com/google/devtools/build/lib/Constants.java
index a9e5a82e9d..e71b1cf4ce 100644
--- a/src/main/java/com/google/devtools/build/lib/Constants.java
+++ b/src/main/java/com/google/devtools/build/lib/Constants.java
@@ -18,20 +18,17 @@ import com.google.common.collect.ImmutableList;
/**
* Various constants required by Bazel.
- *
- * <p>The extra {@code .toString()} calls are there so that javac doesn't inline these constants
- * so that we can replace this class file in the .jar after Bazel was built.
*/
public class Constants {
private Constants() {
}
- public static final String PRODUCT_NAME = "bazel".toString();
+ public static final String PRODUCT_NAME = "bazel";
public static final ImmutableList<String> DEFAULT_PACKAGE_PATH = ImmutableList.of("%workspace%");
public static final String MAIN_RULE_CLASS_PROVIDER =
- "com.google.devtools.build.lib.bazel.rules.BazelRuleClassProvider".toString();
+ "com.google.devtools.build.lib.bazel.rules.BazelRuleClassProvider";
public static final ImmutableList<String> IGNORED_TEST_WARNING_PREFIXES = ImmutableList.of();
- public static final String DEFAULT_RUNFILES_PREFIX = "".toString();
+ public static final String DEFAULT_RUNFILES_PREFIX = "";
public static final ImmutableList<String> WATCHFS_BLACKLIST = ImmutableList.of();