Skip to content

Commit

Permalink
Link to the JBoss Logging Level and not the JDK one
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jul 13, 2020
1 parent c2218f3 commit 86ca33f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.util.Locale;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.logging.Level;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -77,6 +78,12 @@ static String unbox(String type) {
* Get javadoc link of a given type value
*/
static String getJavaDocSiteLink(String type) {
if (type.equals(Level.class.getName())) {
//hack, we don't want to link to the JUL version, but the jboss logging version
//this seems like a one off use case so for now it is just hacked in here
//if there are other use cases we should do something more generic
return "https://docs.jboss.org/jbossas/javadoc/7.1.2.Final/org/jboss/logmanager/Level.html";
}
Matcher packageMatcher = PACKAGE_PATTERN.matcher(type);

if (!packageMatcher.find()) {
Expand Down

0 comments on commit 86ca33f

Please sign in to comment.