diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 74e1d876..1f0f5ab4 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -229,6 +229,7 @@ To use the `ManPageGenerator` tool as a subcommand, you will need the `picocli-c * [#1100] Bugfix: The factory of the original `CommandSpec` is now correctly used in the `CommandSpec` copy for repeatable subcommands. Thanks to [Michael Kunz](https://github.com/protogenes) for the pull request. * [#1058][#1059] DOC: Man page generator: fix incorrect asciidoctor call in synopsis. Thanks to [Andreas Deininger](https://github.com/deining) for the pull request. * [#1058][#1060] DOC: Man page generator: add documentation about creating language variants. Thanks to [Andreas Deininger](https://github.com/deining) for the pull request. +* [#1120] Clean up compiler warnings. * [#1073] DOC: Improve user manual: fix typos, update content. Thanks to [Andreas Deininger](https://github.com/deining) for the pull request. * [#1102] DOC: Show `descriptionKeys` for `@file` and EndOfOptions (--) delimiter in resource bundles. * [#1116] DOC: Improved Guice example in user manual. Thanks to [H.Sakata](https://github.com/sakata1222) for the pull request. diff --git a/picocli-codegen/src/main/java/picocli/codegen/annotation/processing/VersionProviderMetaData.java b/picocli-codegen/src/main/java/picocli/codegen/annotation/processing/VersionProviderMetaData.java index bbc358ad..bfdcffd1 100644 --- a/picocli-codegen/src/main/java/picocli/codegen/annotation/processing/VersionProviderMetaData.java +++ b/picocli-codegen/src/main/java/picocli/codegen/annotation/processing/VersionProviderMetaData.java @@ -29,7 +29,7 @@ class VersionProviderMetaData implements IVersionProvider, ITypeMetaData { /** * Sets the specified {@code CommandSpec}'s - * {@linkplain CommandSpec#versionProvider(IVersionProvider) version provider} + * {@linkplain CommandSpec#versionProvider(picocli.CommandLine.IVersionProvider)} version provider} * to an {@code VersionProviderMetaData} instance if the annotation attribute was present on the * specified {@code Command} annotation. * diff --git a/src/test/java/picocli/RepeatableSubcommandsTest.java b/src/test/java/picocli/RepeatableSubcommandsTest.java index 4499f265..05bc957b 100644 --- a/src/test/java/picocli/RepeatableSubcommandsTest.java +++ b/src/test/java/picocli/RepeatableSubcommandsTest.java @@ -744,6 +744,7 @@ public class RepeatableSubcommandsTest { assertEquals(2, cmd.count); } + @SuppressWarnings("deprecation") @Test public void testCommandLinePublicSetter() throws IOException { PrintWriter ERR = new PrintWriter(new StringWriter()); @@ -841,6 +842,7 @@ public class RepeatableSubcommandsTest { } } + @SuppressWarnings("deprecation") private void checkEquals(CommandLine line, CommandLine other) { assertSame(line.getAtFileCommentChar(), other.getAtFileCommentChar()); assertSame(line.isCaseInsensitiveEnumValuesAllowed(), other.isCaseInsensitiveEnumValuesAllowed());