Merge branch '1.4.x' into 1.5.x

This commit is contained in:
Andy Wilkinson
2017-04-07 12:14:47 +01:00
9 changed files with 22 additions and 15 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.
@@ -120,7 +120,7 @@ public class ShellProperties {
}
public void setDisabledCommands(String[] disabledCommands) {
Assert.notEmpty(disabledCommands);
Assert.notEmpty(disabledCommands, "disabledCommands must not be empty");
this.disabledCommands = disabledCommands;
}
@@ -129,7 +129,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;
}

View File

@@ -244,7 +244,6 @@ public class WebRequestTraceFilterTests {
}
@Test
@SuppressWarnings("unchecked")
public void filterAddsTimeTaken() throws Exception {
MockHttpServletRequest request = spy(new MockHttpServletRequest("GET", "/foo"));
MockHttpServletResponse response = new MockHttpServletResponse();