Merge pull request #11171 from izeye:assertion-location
* pr/11171: Fix assertion locations
This commit is contained in:
commit
fc503870bf
|
|
@ -171,9 +171,9 @@ public class AnnotationConfigReactiveWebServerApplicationContext
|
||||||
* @see #refresh()
|
* @see #refresh()
|
||||||
*/
|
*/
|
||||||
public final void register(Class<?>... annotatedClasses) {
|
public final void register(Class<?>... annotatedClasses) {
|
||||||
this.annotatedClasses = annotatedClasses;
|
|
||||||
Assert.notEmpty(annotatedClasses,
|
Assert.notEmpty(annotatedClasses,
|
||||||
"At least one annotated class must be specified");
|
"At least one annotated class must be specified");
|
||||||
|
this.annotatedClasses = annotatedClasses;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -184,8 +184,8 @@ public class AnnotationConfigReactiveWebServerApplicationContext
|
||||||
* @see #refresh()
|
* @see #refresh()
|
||||||
*/
|
*/
|
||||||
public final void scan(String... basePackages) {
|
public final void scan(String... basePackages) {
|
||||||
this.basePackages = basePackages;
|
|
||||||
Assert.notEmpty(basePackages, "At least one base package must be specified");
|
Assert.notEmpty(basePackages, "At least one base package must be specified");
|
||||||
|
this.basePackages = basePackages;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -169,9 +169,9 @@ public class AnnotationConfigServletWebServerApplicationContext
|
||||||
* @see #refresh()
|
* @see #refresh()
|
||||||
*/
|
*/
|
||||||
public final void register(Class<?>... annotatedClasses) {
|
public final void register(Class<?>... annotatedClasses) {
|
||||||
this.annotatedClasses = annotatedClasses;
|
|
||||||
Assert.notEmpty(annotatedClasses,
|
Assert.notEmpty(annotatedClasses,
|
||||||
"At least one annotated class must be specified");
|
"At least one annotated class must be specified");
|
||||||
|
this.annotatedClasses = annotatedClasses;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -182,8 +182,8 @@ public class AnnotationConfigServletWebServerApplicationContext
|
||||||
* @see #refresh()
|
* @see #refresh()
|
||||||
*/
|
*/
|
||||||
public final void scan(String... basePackages) {
|
public final void scan(String... basePackages) {
|
||||||
this.basePackages = basePackages;
|
|
||||||
Assert.notEmpty(basePackages, "At least one base package must be specified");
|
Assert.notEmpty(basePackages, "At least one base package must be specified");
|
||||||
|
this.basePackages = basePackages;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue