diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java b/src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java index a19f86f30f..2fb39d464b 100644 --- a/src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java +++ b/src/main/java/com/google/devtools/build/docgen/skylark/SkylarkDoc.java @@ -24,7 +24,6 @@ import com.google.devtools.build.lib.syntax.SkylarkList.MutableList; import com.google.devtools.build.lib.syntax.SkylarkList.Tuple; import java.util.Arrays; import java.util.Map; -import java.util.regex.Pattern; /** * Abstract class for containing documentation for a Skylark syntactic entity. @@ -40,24 +39,7 @@ abstract class SkylarkDoc { /** * Returns a string containing the formatted HTML documentation of the entity being documented. */ - public String getDocumentation() { - String doc = getEntityDocumentation(); - if (doc == null || doc.length() == 0) { - return ""; - } - - // Check if valid punctiation is not present at the end of the documentation. - if (Pattern.matches(".+[^.?!]$", doc)) { - // Add a final period. - doc += "."; - } - return doc; - } - - /** - * Returns a string containing the HTML documentation of the entity, before being post-processed. - */ - protected abstract String getEntityDocumentation(); + public abstract String getDocumentation(); protected String getTypeAnchor(Class<?> returnType, Class<?> generic1) { return getTypeAnchor(returnType) + " of " + getTypeAnchor(generic1) + "s"; |