Address deprecation warnings
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -118,7 +118,7 @@ public class ShellProperties {
|
||||
}
|
||||
|
||||
public void setDisabledCommands(String[] disabledCommands) {
|
||||
Assert.notEmpty(disabledCommands);
|
||||
Assert.notEmpty(disabledCommands, "disabledCommands must not be empty");
|
||||
this.disabledCommands = disabledCommands;
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ public class ShellProperties {
|
||||
}
|
||||
|
||||
public void setDisabledPlugins(String[] disabledPlugins) {
|
||||
Assert.notEmpty(disabledPlugins);
|
||||
Assert.notEmpty(disabledPlugins, "disabledPlugins must not be empty");
|
||||
this.disabledPlugins = disabledPlugins;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -72,7 +72,7 @@ public class StatsdMetricWriter implements MetricWriter, Closeable {
|
||||
* @param client StatsD client to write metrics with
|
||||
*/
|
||||
public StatsdMetricWriter(StatsDClient client) {
|
||||
Assert.notNull(client);
|
||||
Assert.notNull(client, "client must not be null");
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user