[#1120] Clean up compiler warnings

This commit is contained in:
Remko Popma
2020-06-30 07:56:50 +09:00
parent 4e845e0a56
commit 20da7e405d
3 changed files with 4 additions and 1 deletions

View File

@@ -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.

View File

@@ -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.
*

View File

@@ -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());