Fixed deprecated warnings without changing behaviour (#4177)

* fixed deprecated warnings without changing behaviour

* use Charset.defaultCharset() instead of null
This commit is contained in:
StefanSpieker authored and Oleg Nenashev committed 2019-09-13 09:45:34 +02:00
1 parent 8853687cde
commit 69a524ab0b
21 files changed
+59 -48

No files matched your search

+3 -2
View File
@@ -208,8 +208,9 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
private enum PMConstructor {
JENKINS {
@Override
@Nonnull PluginManager doCreate(@Nonnull Class<? extends PluginManager> klass,
@Nonnull Jenkins jenkins) throws ReflectiveOperationException {
@Nonnull
PluginManager doCreate(@Nonnull Class<? extends PluginManager> klass,
@Nonnull Jenkins jenkins) throws ReflectiveOperationException {
return klass.getConstructor(Jenkins.class).newInstance(jenkins);
}
},