DATAREST-992 - Remove references to Assert single-arg methods.
Replace references to Assert single-arg methods with references to methods accepting the test object and message. Related ticket: SPR-15196.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016 the original author or authors.
|
||||
* Copyright 2016-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.
|
||||
@@ -37,6 +37,7 @@ import org.springframework.util.ReflectionUtils;
|
||||
* {@link ResourceSupport}.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Mark Paluch
|
||||
* @since 2.5
|
||||
* @deprecated use the same type from Spring HATEOAS, will be removed in 2.7.
|
||||
*/
|
||||
@@ -200,7 +201,7 @@ public class ResourceProcessorInvoker {
|
||||
*/
|
||||
public DefaultProcessorWrapper(ResourceProcessor<?> processor) {
|
||||
|
||||
Assert.notNull(processor);
|
||||
Assert.notNull(processor, "ResourceProcessor must not be null!");
|
||||
|
||||
this.processor = processor;
|
||||
this.targetType = ResolvableType.forClass(ResourceProcessor.class, processor.getClass()).getGeneric(0);
|
||||
|
||||
@@ -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.
|
||||
@@ -38,6 +38,7 @@ import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandl
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author Phil Webb
|
||||
* @author Mark Paluch
|
||||
* @deprecated use the same type from Spring HATEOAS, will be removed in 2.7.
|
||||
*/
|
||||
@Deprecated
|
||||
@@ -56,7 +57,7 @@ public class ResourceProcessorInvokingHandlerAdapter extends RequestMappingHandl
|
||||
@Autowired(required = false)
|
||||
public ResourceProcessorInvokingHandlerAdapter(ResourceProcessorInvoker invoker) {
|
||||
|
||||
Assert.notNull(invoker);
|
||||
Assert.notNull(invoker, "ResourceProcessorInvoker must not be null!");
|
||||
this.invoker = invoker;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user