[cxf] branch master updated: [CXF-7968] Handle javadoc's operation link for JDK > 1.8

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[cxf] branch master updated: [CXF-7968] Handle javadoc's operation link for JDK > 1.8

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6307f63  [CXF-7968] Handle javadoc's operation link for JDK > 1.8
6307f63 is described below

commit 6307f6334302c370b8a463914c963f4f644ce536
Author: Francesco Chicchiriccò <[hidden email]>
AuthorDate: Fri Feb 8 15:29:43 2019 +0100

    [CXF-7968] Handle javadoc's operation link for JDK > 1.8
---
 .../main/java/org/apache/cxf/jaxrs/model/doc/JavaDocProvider.java  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/doc/JavaDocProvider.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/doc/JavaDocProvider.java
index 7ac4c17..e556702 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/doc/JavaDocProvider.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/doc/JavaDocProvider.java
@@ -297,9 +297,14 @@ public class JavaDocProvider implements DocumentationProvider {
         }
         return "<div class=\"block\">";
     }
+
     protected String getOperLink() {
         String operLink = "<A NAME=\"";
-        return javaDocsBuiltByVersion == JAVA_VERSION_16 ? operLink : operLink.toLowerCase();
+        return javaDocsBuiltByVersion == JAVA_VERSION_16
+                ? operLink
+                : javaDocsBuiltByVersion <= JAVA_VERSION_18
+                        ? operLink.toLowerCase()
+                        : "<a id=\"";
     }
 
     protected String getResponseMarker() {