Skip to content

Commit

Permalink
lightbendGH-97 Remove xebialabs specific annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ilx committed Apr 23, 2019
1 parent 129d7a2 commit be7edbb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions plugin/src/main/scala/com/typesafe/genjavadoc/Plugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import java.io.File
import java.util.Properties



object GenJavadocPlugin {

val javaKeywords = Set("abstract", "assert", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue",
Expand All @@ -20,13 +19,6 @@ object GenJavadocPlugin {

private val defaultFilterString = "$$"

val defaultAnnotations = Set(
"com.xebialabs.xlplatform.documentation.PublicApi",
"com.xebialabs.xlplatform.documentation.PublicApiRef",
"com.xebialabs.xlplatform.documentation.PublicApiMember",
"com.xebialabs.xlplatform.documentation.ShowOnlyPublicApiMembers"
).mkString(",")

def stringToFilter(s: String): Set[String] = s.split(",").toSet

val defaultFilteredStrings = stringToFilter(defaultFilterString)
Expand Down Expand Up @@ -57,12 +49,10 @@ class GenJavadocPlugin(val global: Global) extends Plugin {
lazy val filteredStrings: Set[String] = stringToFilter(myOptions.getProperty("filter", defaultFilterString))
lazy val fabricateParams = java.lang.Boolean.parseBoolean(myOptions.getProperty("fabricateParams", "true"))
lazy val strictVisibility = java.lang.Boolean.parseBoolean(myOptions.getProperty("strictVisibility", "false"))
lazy val allowedAnnotations: Set[String] = stringToFilter(myOptions.getProperty("annotations", defaultAnnotations))
lazy val allowedAnnotations: Set[String] = stringToFilter(myOptions.getProperty("annotations", ""))

private object MyComponent extends PluginComponent with Transform {

import global._

type GT = GenJavadocPlugin.this.global.type

override val global: GT = GenJavadocPlugin.this.global
Expand Down

0 comments on commit be7edbb

Please sign in to comment.