Skip to content

Commit c60edbc

Browse files
authored
deprecate toRelative (#379)
1 parent fb0e820 commit c60edbc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ protected static List<String> getIncludedFiles(
363363
*
364364
* @param sourceDirectory the directory where the source files are located
365365
* @param excludePackagenames package names to be excluded in the javadoc
366-
* @return a List of the packagenames to be excluded
366+
* @return the package names to be excluded
367367
*/
368368
protected static Collection<String> getExcludedPackages(
369369
final Path sourceDirectory, Collection<String> excludePackagenames) {
@@ -1262,7 +1262,10 @@ static <T> List<T> toList(T single, T[] multiple) {
12621262
return result;
12631263
}
12641264

1265-
// TODO: deprecate in favor of Path.relativize
1265+
/**
1266+
* @deprecated use {@link Path#relativize(Path)} () instead
1267+
*/
1268+
@Deprecated
12661269
public static String toRelative(File basedir, String absolutePath) {
12671270
String relative;
12681271

0 commit comments

Comments
 (0)