Skip to content

Commit f7b1313

Browse files
committed
Replace <tt> by <code> to fix javadoc failure on Java 11
Build failure when using JDK 11.0.2: ``` [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (attach-javadocs) on project git: MavenReportException: Error while generating Javadoc: [ERROR] Exit code: 1 - /home/tiste/dev/github/jenkinsci/git-plugin/src/main/java/hudson/plugins/git/util/InverseBuildChooser.java:20: error: tag not supported in the generated HTML version: tt [ERROR] * e.g. If <tt>&#x2a;&#x2a;/master</tt> and <tt>&#x2a;&#x2a;/release-&#x2a;</tt> are configured as [ERROR] ^ [ERROR] /home/tiste/dev/github/jenkinsci/git-plugin/src/main/java/hudson/plugins/git/util/InverseBuildChooser.java:20: error: tag not supported in the generated HTML version: tt [ERROR] * e.g. If <tt>&#x2a;&#x2a;/master</tt> and <tt>&#x2a;&#x2a;/release-&#x2a;</tt> are configured as [ERROR] ^ [ERROR] /home/tiste/dev/github/jenkinsci/git-plugin/src/main/java/hudson/plugins/git/util/InverseBuildChooser.java:24: error: tag not supported in the generated HTML version: tt [ERROR] * This is useful, for example, when you have jobs building your <tt>master</tt> and various [ERROR] ^ [ERROR] /home/tiste/dev/github/jenkinsci/git-plugin/src/main/java/hudson/plugins/git/util/InverseBuildChooser.java:25: error: tag not supported in the generated HTML version: tt [ERROR] * <tt>release</tt> branches and you want a second job which builds all new feature branches &mdash; [ERROR] ^ [ERROR] /home/tiste/dev/github/jenkinsci/git-plugin/src/main/java/hudson/plugins/git/util/InverseBuildChooser.java:27: error: tag not supported in the generated HTML version: tt [ERROR] * <tt>master</tt> and the release branches again each time they change. [ERROR] ^ [ERROR] /home/tiste/dev/github/jenkinsci/git-plugin/src/main/java/hudson/plugins/git/util/BuildChooser.java:190: warning: @return has already been specified [ERROR] * @return [ERROR] ^ [ERROR] [ERROR] Command line was: /home/tiste/.tools/JDKs/jdk-11.0.2/bin/javadoc @options @packages [ERROR] [ERROR] Refer to the generated Javadoc files in '/home/tiste/dev/github/jenkinsci/git-plugin/target/apidocs' dir. ```
1 parent 01624e4 commit f7b1313

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/hudson/plugins/git/util/InverseBuildChooser.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
* Git build chooser which will select all branches <b>except</b> for those which match the
1818
* configured branch specifiers.
1919
* <p>
20-
* e.g. If <tt>&#x2a;&#x2a;/master</tt> and <tt>&#x2a;&#x2a;/release-&#x2a;</tt> are configured as
20+
* e.g. If <code>&#x2a;&#x2a;/master</code> and <code>&#x2a;&#x2a;/release-&#x2a;</code> are configured as
2121
* "Branches to build" then any branches matching those patterns <b>will not</b> be built, unless
2222
* another branch points to the same revision.
2323
* <p>
24-
* This is useful, for example, when you have jobs building your <tt>master</tt> and various
25-
* <tt>release</tt> branches and you want a second job which builds all new feature branches &mdash;
24+
* This is useful, for example, when you have jobs building your <code>master</code> and various
25+
* <code>release</code> branches and you want a second job which builds all new feature branches &mdash;
2626
* i.e. branches which do not match these patterns &mdash; without redundantly building
27-
* <tt>master</tt> and the release branches again each time they change.
27+
* <code>master</code> and the release branches again each time they change.
2828
*
2929
* @author Christopher Orr
3030
*/

0 commit comments

Comments
 (0)