Address deprecation warnings

This commit is contained in:
Andy Wilkinson
2017-04-07 12:01:01 +01:00
parent d45d94520e
commit 5dad7182db
7 changed files with 22 additions and 16 deletions

View File

@@ -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;
}

View File

@@ -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;
}