package internal.org.springframework.content.rest.boot.autoconfigure;

import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration;
import org.springframework.content.rest.config.HypermediaConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration;

@Configuration
@ConditionalOnBean(RepositoryRestMvcConfiguration.class)
@AutoConfigureAfter({ RepositoryRestMvcAutoConfiguration.class })
@Import(HypermediaConfiguration.class)
public class HypermediaAutoConfiguration {

	@Bean
	public Object aBean() {
		return new Object();
	}
}

@@ -373,60 +373,8 @@
 on;%0A
-import org.springframework.context.annotation.Bean;%0A
 impo
@@ -792,65 +792,10 @@
 n %7B%0A
-%0A%09@Bean%0A%09public Object aBean() %7B%0A%09%09return new Object();%0A%09%7D
+%09//
 %0A%7D%0A

Remove unrequired bean