DATACMNS-1206 - Polishing.
Moved PropertyDescriptor lookup into dedicated subclass to group functionality around the type and MethodsMetadata instances. Extracted individual stream handling steps into dedicated methods for better understandability. Moved MethodsMetadataReader into classreading package for symmetry with Spring Framework's metadata arrangement. Removed manually declared getters in DefaultMethodsMetadataReader in favor of Lombok getters. Inlined MethodsMetadataReadingVisitor into DefaultMethodsMetadataReader as it's only used there. Original pull request: #263.
This commit is contained in:
committed by
Mark Paluch
parent
9e013d3c14
commit
5eb10a0817
@@ -23,7 +23,6 @@ import java.util.Iterator;
|
||||
import org.junit.Test;
|
||||
import org.springframework.core.type.MethodMetadata;
|
||||
import org.springframework.data.type.MethodsMetadata;
|
||||
import org.springframework.data.type.MethodsMetadataReader;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link DefaultMethodsMetadataReader}.
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.data.type;
|
||||
package org.springframework.data.type.classreading;
|
||||
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
|
||||
@@ -24,6 +24,7 @@ import java.net.URLClassLoader;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.springframework.core.io.DefaultResourceLoader;
|
||||
import org.springframework.data.type.classreading.MethodsMetadataReader;
|
||||
import org.springframework.data.type.classreading.MethodsMetadataReaderFactory;
|
||||
|
||||
/**
|
||||
Reference in New Issue
Block a user