Use instance equality for Class
Closes gh-11534
This commit is contained in:
committed by
Stephane Nicoll
parent
b5a4edc9e8
commit
b8706c47d6
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2018 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.
|
||||
@@ -60,7 +60,7 @@ public class TypeExcludeFilter implements TypeFilter, BeanFactoryAware {
|
||||
public boolean match(MetadataReader metadataReader,
|
||||
MetadataReaderFactory metadataReaderFactory) throws IOException {
|
||||
if (this.beanFactory instanceof ListableBeanFactory
|
||||
&& getClass().equals(TypeExcludeFilter.class)) {
|
||||
&& getClass() == TypeExcludeFilter.class) {
|
||||
Collection<TypeExcludeFilter> delegates = ((ListableBeanFactory) this.beanFactory)
|
||||
.getBeansOfType(TypeExcludeFilter.class).values();
|
||||
for (TypeExcludeFilter delegate : delegates) {
|
||||
|
||||
Reference in New Issue
Block a user