You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2020/03/28 16:47:00 UTC
[maven-javadoc-plugin] branch depr created (now 21fde88)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a change to branch depr
in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git.
at 21fde88 cure a couple of deprecation warnings
This branch includes the following new commits:
new 21fde88 cure a couple of deprecation warnings
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[maven-javadoc-plugin] 01/01: cure a couple of deprecation warnings
Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch depr
in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git
commit 21fde885607db080e68d21a41363d883052946ea
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sat Mar 28 12:46:35 2020 -0400
cure a couple of deprecation warnings
---
.../java/org/apache/maven/plugins/javadoc/AbstractFixJavadocMojo.java | 2 +-
src/test/java/org/apache/maven/plugins/javadoc/JavadocUtilTest.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/javadoc/AbstractFixJavadocMojo.java b/src/main/java/org/apache/maven/plugins/javadoc/AbstractFixJavadocMojo.java
index ff065c7..c48258f 100644
--- a/src/main/java/org/apache/maven/plugins/javadoc/AbstractFixJavadocMojo.java
+++ b/src/main/java/org/apache/maven/plugins/javadoc/AbstractFixJavadocMojo.java
@@ -965,7 +965,7 @@ public abstract class AbstractFixJavadocMojo
{
try
{
- urls.add( new File( filename ).toURL() );
+ urls.add( new File( filename ).toURI().toURL() );
}
catch ( MalformedURLException e )
{
diff --git a/src/test/java/org/apache/maven/plugins/javadoc/JavadocUtilTest.java b/src/test/java/org/apache/maven/plugins/javadoc/JavadocUtilTest.java
index 33431b5..e3a00d1 100644
--- a/src/test/java/org/apache/maven/plugins/javadoc/JavadocUtilTest.java
+++ b/src/test/java/org/apache/maven/plugins/javadoc/JavadocUtilTest.java
@@ -283,7 +283,7 @@ public class JavadocUtilTest
assertTrue( true );
}
- url = new File( getBasedir(), "/pom.xml" ).toURL();
+ url = new File( getBasedir(), "/pom.xml" ).toURI().toURL();
assertTrue( JavadocUtil.isValidPackageList( url, settings, false ) );
try