From 0e08d379aecbe5b9847592d481fd3e0ed224ce86 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 29 Oct 2018 11:33:46 +0000 Subject: [PATCH] Polish "Add CachingMetadataReaderFactoryPostProcessor earlier in context lifecyle" See gh-14907 --- .../SharedMetadataReaderFactoryContextInitializer.java | 1 - .../SharedMetadataReaderFactoryContextInitializerTests.java | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/SharedMetadataReaderFactoryContextInitializer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/SharedMetadataReaderFactoryContextInitializer.java index 73dbe9b87c..5401758f71 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/SharedMetadataReaderFactoryContextInitializer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/SharedMetadataReaderFactoryContextInitializer.java @@ -60,7 +60,6 @@ class SharedMetadataReaderFactoryContextInitializer implements @Override public int getOrder() { - // Should happen before other BeanDefinitionRegistryPostProcessors are added return 0; } diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/SharedMetadataReaderFactoryContextInitializerTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/SharedMetadataReaderFactoryContextInitializerTests.java index 306c24adcd..9844f5ef02 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/SharedMetadataReaderFactoryContextInitializerTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/SharedMetadataReaderFactoryContextInitializerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-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. @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.boot.autoconfigure; import java.util.List; @@ -33,8 +34,9 @@ import org.springframework.test.util.ReflectionTestUtils; import static org.assertj.core.api.Assertions.assertThat; /** - * @author Dave Syer + * Tests for {@link SharedMetadataReaderFactoryContextInitializer}. * + * @author Dave Syer */ public class SharedMetadataReaderFactoryContextInitializerTests {