aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/docgen/RuleLinkExpander.java
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-03-02 16:01:13 +0000
committerGravatar Yue Gan <yueg@google.com>2017-03-03 10:35:52 +0000
commitcffe73585e3c734638414af62e98ec9466a5638c (patch)
tree87dff9c478c738b566933d7db5a04cc79bb88bbb /src/main/java/com/google/devtools/build/docgen/RuleLinkExpander.java
parent7ed28beae92c1de431a8573af345058d96752f96 (diff)
Global cleanup change.
-- PiperOrigin-RevId: 149004753 MOS_MIGRATED_REVID=149004753
Diffstat (limited to 'src/main/java/com/google/devtools/build/docgen/RuleLinkExpander.java')
-rw-r--r--src/main/java/com/google/devtools/build/docgen/RuleLinkExpander.java37
1 files changed, 18 insertions, 19 deletions
diff --git a/src/main/java/com/google/devtools/build/docgen/RuleLinkExpander.java b/src/main/java/com/google/devtools/build/docgen/RuleLinkExpander.java
index e521c504ac..6bbd94c459 100644
--- a/src/main/java/com/google/devtools/build/docgen/RuleLinkExpander.java
+++ b/src/main/java/com/google/devtools/build/docgen/RuleLinkExpander.java
@@ -18,7 +18,6 @@ import com.google.common.collect.ImmutableSet;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
-import java.util.Set;
import java.util.regex.Matcher;
/**
@@ -33,24 +32,24 @@ public class RuleLinkExpander {
private static final String IMPLICIT_OUTPUTS_SUFFIX = "_implicit_outputs";
private static final String FUNCTIONS_PAGE = "functions";
- private static final Set<String> STATIC_PAGES = ImmutableSet.<String>of(
- "common-definitions",
- "make-variables",
- "predefined-python-variables");
- private static final Map<String, String> FUNCTIONS = ImmutableMap.<String, String>builder()
- .put("load", FUNCTIONS_PAGE)
- .put("subinclude", FUNCTIONS_PAGE)
- .put("PYTHON-PREPROCESSING-REQUIRED", FUNCTIONS_PAGE)
- .put("package", FUNCTIONS_PAGE)
- .put("package_group", FUNCTIONS_PAGE)
- .put("description", FUNCTIONS_PAGE)
- .put("distribs", FUNCTIONS_PAGE)
- .put("licenses", FUNCTIONS_PAGE)
- .put("exports_files", FUNCTIONS_PAGE)
- .put("glob", FUNCTIONS_PAGE)
- .put("select", FUNCTIONS_PAGE)
- .put("workspace", FUNCTIONS_PAGE)
- .build();
+ private static final ImmutableSet<String> STATIC_PAGES =
+ ImmutableSet.<String>of(
+ "common-definitions", "make-variables", "predefined-python-variables");
+ private static final ImmutableMap<String, String> FUNCTIONS =
+ ImmutableMap.<String, String>builder()
+ .put("load", FUNCTIONS_PAGE)
+ .put("subinclude", FUNCTIONS_PAGE)
+ .put("PYTHON-PREPROCESSING-REQUIRED", FUNCTIONS_PAGE)
+ .put("package", FUNCTIONS_PAGE)
+ .put("package_group", FUNCTIONS_PAGE)
+ .put("description", FUNCTIONS_PAGE)
+ .put("distribs", FUNCTIONS_PAGE)
+ .put("licenses", FUNCTIONS_PAGE)
+ .put("exports_files", FUNCTIONS_PAGE)
+ .put("glob", FUNCTIONS_PAGE)
+ .put("select", FUNCTIONS_PAGE)
+ .put("workspace", FUNCTIONS_PAGE)
+ .build();
private final String productName;
private final Map<String, String> ruleIndex = new HashMap<>();