New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 1275 broken javadoc #1753
Issue 1275 broken javadoc #1753
Conversation
log4j-core/src/main/java/org/apache/logging/log4j/core/layout/PatternLayout.java
Outdated
Show resolved
Hide resolved
@lukaszspyra, thanks so much for all these fixes! Much appreciated! 🙇 I have two remarks:
|
Links were removed due to following reasons: dependency commons-lang3 not containing docs sources; package sun.reflect.Reflection was deprecated and removed in JDK8
f0e183b
to
3f994ff
Compare
Most of the missing tags are self-explanatory, added a few missing to be consistent
Hi @vy ,
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much! Could you implement the following changes, please?
- Target to branch
release/2.21.0
- Add
src/changelog/2.21.0/1275_fix-javadoc.xml
(type=fixed
,author
s are )type=fixed
- issues: Javadoc is broken #1275 (issue), Issue 1275 broken javadoc #1753 (pull)
- authors:
github:lukaszspyra
,github:vy
- Remove
javadoc
goal attached to theverify
phase - Remove
<failOnError>false
ingenerate-site-javadoc
execution - Fix
./mvnw site
failures (I will share some of them below)
/home/vy/Projects/logging-log4j2.git/issue-1275-broken-javadoc/log4j-api/src/main/java/org/apache/logging/log4j/message/ThreadDumpMessage.java:169: error: unexpected content
* @see /log4j-core/src/main/resources/META-INF/services/org.apache.logging.log4j.message.ThreadDumpMessage$ThreadInfoFactory
/home/vy/Projects/logging-log4j2.git/issue-1275-broken-javadoc/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/AbstractDatabaseAppender.java:36: error: reference not found
* {@link org.apache.logging.log4j.core.appender.db.jdbc JDBC}, {@link org.apache.logging.log4j.core.appender.db.jpa
^
/home/vy/Projects/logging-log4j2.git/issue-1275-broken-javadoc/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/ThreadContextDataInjector.java:105: error: @param name not found
* @param contextData a {@code StringMap} instance from the log event
@lukaszspyra, you know what, nevermind. I will implement the requested changes myself. We are on a roll with |
Ref. #1275
Partly fixes failures of javadoc:javadoc goal. Changes to api and core modules:
<h4>
headers by<strong>
tags (h4 caused 'headings out of sequence' errors)@
escaped with html code@
in<pre>
tags (it was treated as javadoc tag otherwise)@param
tag description according to style guidelines@return
from void methods@value
- replaced by hardcoded values, as it would render correctly only for compile-time constantsChanges to main pom.xml:
Edited maven javadoc doclint profile, setting to exclude warnings from missing javadoc and html5 semantics only.