You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/09/04 12:48:12 UTC

[camel] branch master updated: CAMEL-15478: Deprecate javadoc parser for api components

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 340aefc  CAMEL-15478: Deprecate javadoc parser for api components
340aefc is described below

commit 340aefcca8df14af7390ff3c1bfd4d2bbf277e9e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Sep 4 14:47:48 2020 +0200

    CAMEL-15478: Deprecate javadoc parser for api components
---
 .../java/org/apache/camel/maven/AbstractApiMethodGeneratorMojo.java     | 2 +-
 .../main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java | 1 +
 .../src/main/java/org/apache/camel/maven/JavadocParser.java             | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractApiMethodGeneratorMojo.java b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractApiMethodGeneratorMojo.java
index 17a1665..9365b04 100644
--- a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractApiMethodGeneratorMojo.java
+++ b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractApiMethodGeneratorMojo.java
@@ -186,7 +186,7 @@ public abstract class AbstractApiMethodGeneratorMojo extends AbstractApiMethodBa
         context.put("apiName", apiName);
 
         // TODO: we should include alias information as well
-        
+
         String apiMethodNames = models.stream().map(ApiMethodParser.ApiMethodModel::getName)
                 .distinct()
                 .sorted()
diff --git a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
index ac1fbbe..e7b6b54 100644
--- a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
+++ b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocApiMethodGeneratorMojo.java
@@ -42,6 +42,7 @@ import org.apache.maven.plugins.annotations.ResolutionScope;
  */
 @Mojo(name = "fromJavadoc", requiresDependencyResolution = ResolutionScope.TEST, requiresProject = true,
       defaultPhase = LifecyclePhase.GENERATE_SOURCES, threadSafe = true)
+@Deprecated
 public class JavadocApiMethodGeneratorMojo extends AbstractApiMethodGeneratorMojo {
 
     static {
diff --git a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocParser.java b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocParser.java
index 95b6242..9a62be6 100644
--- a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocParser.java
+++ b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/JavadocParser.java
@@ -39,6 +39,7 @@ import static org.apache.camel.tooling.util.JavadocHelper.sanitizeDescription;
 /**
  * Parses Javadoc HTML to get Method Signatures from Method Summary. Supports 8 and 11 Javadoc formats.
  */
+@Deprecated
 public class JavadocParser extends Parser {
 
     private static final String NON_BREAKING_SPACE = "\u00A0";