mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-07-18 21:47:18 +00:00
BeanLookupBindings: check appCtx != null explicitly, rather than using
assert.
This commit is contained in:
@@ -16,16 +16,16 @@ import org.springframework.context.ApplicationContext;
|
||||
*/
|
||||
public class BeanLookupBindings extends SimpleBindings {
|
||||
|
||||
private ApplicationContext appCtx = null;
|
||||
private final ApplicationContext appCtx;
|
||||
|
||||
public BeanLookupBindings(ApplicationContext appCtx) {
|
||||
assert appCtx != null;
|
||||
if (appCtx == null) throw new NullPointerException("appCtx");
|
||||
this.appCtx = appCtx;
|
||||
}
|
||||
|
||||
public BeanLookupBindings(ApplicationContext appCtx, Map<String, Object> m) {
|
||||
super(m);
|
||||
assert appCtx != null;
|
||||
if (appCtx == null) throw new NullPointerException("appCtx");
|
||||
this.appCtx = appCtx;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user