language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context-support/src/test/java/org/springframework/cache/ehcache/EhCacheSupportTests.java | @@ -188,6 +188,7 @@ public void testEhCacheFactoryBeanWithSelfPopulatingCache() throws Exception {
cacheFb.setCacheManager(cm);
cacheFb.setCacheName("myCache1");
cacheFb.setCacheEntryFactory(new CacheEntryFactory() {
+ @Override
public Object createEntry(Object key) throws Exception {
return k... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context-support/src/test/java/org/springframework/mail/javamail/InternetAddressEditorTests.java | @@ -30,6 +30,7 @@ public class InternetAddressEditorTests extends TestCase {
private InternetAddressEditor editor;
+ @Override
protected void setUp() {
editor = new InternetAddressEditor();
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context-support/src/test/java/org/springframework/mail/javamail/JavaMailSenderTests.java | @@ -170,6 +170,7 @@ public void testJavaMailSenderWithMimeMessagePreparator() {
final List<Message> messages = new ArrayList<Message>();
MimeMessagePreparator preparator = new MimeMessagePreparator() {
+ @Override
public void prepare(MimeMessage mimeMessage) throws MessagingException {
mimeMessage.se... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context-support/src/test/java/org/springframework/scheduling/quartz/QuartzSupportTests.java | @@ -154,6 +154,7 @@ private void doTestSchedulerFactoryBean(boolean explicitJobDetail, boolean proto
schedulerControl.replay();
SchedulerFactoryBean schedulerFactoryBean = new SchedulerFactoryBean() {
+ @Override
protected Scheduler createScheduler(SchedulerFactory schedulerFactory, String schedulerName) ... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context-support/src/test/java/org/springframework/ui/jasperreports/JasperReportsUtilsTests.java | @@ -236,6 +236,7 @@ private static class SimpleProgressMonitor implements JRExportProgressMonitor {
private boolean invoked = false;
+ @Override
public void afterPageExport() {
this.invoked = true;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/example/scannable/AutowiredQualifierFooService.java | @@ -45,14 +45,17 @@ private void init() {
this.initCalled = true;
}
+ @Override
public String foo(int id) {
return this.fooDao.findFoo(id);
}
+ @Override
public Future<String> asyncFoo(int id) {
return new AsyncResult<String>(this.fooDao.findFoo(id));
}
+ @Override
public boolean isInitCalled... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/example/scannable/FooServiceImpl.java | @@ -74,16 +74,19 @@ private void init() {
this.initCalled = true;
}
+ @Override
public String foo(int id) {
return this.fooDao.findFoo(id);
}
+ @Override
public Future<String> asyncFoo(int id) {
System.out.println(Thread.currentThread().getName());
Assert.state(ServiceInvocationCounter.getThread... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/example/scannable/ScopedProxyTestBean.java | @@ -28,14 +28,17 @@
@Scope("myScope")
public class ScopedProxyTestBean implements FooService {
+ @Override
public String foo(int id) {
return "bar";
}
+ @Override
public Future<String> asyncFoo(int id) {
return new AsyncResult<String>("bar");
}
+ @Override
public boolean isInitCalled() {
retu... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/example/scannable/StubFooDao.java | @@ -26,6 +26,7 @@
@Qualifier("testing")
public class StubFooDao implements FooDao {
+ @Override
public String findFoo(int id) {
return "bar";
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/AspectAndAdvicePrecedenceTests.java | @@ -110,26 +110,32 @@ private void checkAdvice(String whatJustHappened) {
}
}
+ @Override
public void beforeAdviceOne(String beanName) {
checkAdvice("beforeAdviceOne(" + beanName + ")");
}
+ @Override
public void beforeAdviceTwo(String beanName) {
checkAdvice("beforeAdviceTwo(" + beanName ... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisorTests.java | @@ -60,6 +60,7 @@ class CallCountingInterceptor implements MethodInterceptor {
private int count;
+ @Override
public Object invoke(MethodInvocation methodInvocation) throws Throwable {
count++;
return methodInvocation.proceed(); | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutTests.java | @@ -126,6 +126,7 @@ public static class TestInterceptor implements MethodBeforeAdvice {
private int interceptionCount;
+ @Override
public void before(Method method, Object[] args, Object target) throws Throwable {
interceptionCount++;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/DeclarationOrderIndependenceTests.java | @@ -88,6 +88,7 @@ public static class BeanNameAwareMixin implements BeanNameAware {
/* (non-Javadoc)
* @see org.springframework.beans.factory.BeanNameAware#setBeanName(java.lang.String)
*/
+ @Override
public void setBeanName(String name) {
this.beanName = name;
}
@@ -148,13 +149,15 @@ class TopsyT... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/ProceedTests.java | @@ -101,34 +101,42 @@ class SimpleBeanImpl implements SimpleBean {
private String name;
private String sex;
+ @Override
public int getAge() {
return age;
}
+ @Override
public float getMyFloat() {
return aFloat;
}
+ @Override
public String getName() {
return name;
}
+ @Override
public ... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/SubtypeSensitiveMatchingTests.java | @@ -74,13 +74,15 @@ interface SerializableFoo extends Serializable { void foo(); }
class SubtypeMatchingTestClassA implements NonSerializableFoo {
+ @Override
public void foo() {}
}
@SuppressWarnings("serial")
class SubtypeMatchingTestClassB implements SerializableFoo {
+ @Override
public void foo() {... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/TargetPointcutSelectionTests.java | @@ -82,6 +82,7 @@ public static interface TestInterface {
// include the advised method's implementation (instead a base class should include it)
public static abstract class AbstractTestImpl implements TestInterface {
+ @Override
public void interfaceMethod() {
}
}
@@ -107,6 +108,7 @@ public void increm... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/ThisAndTargetSelectionOnlyPointcutsAtAspectJTests.java | @@ -108,6 +108,7 @@ public static interface TestInterface {
}
public static class TestImpl implements TestInterface {
+ @Override
public void doIt() {
}
}
@@ -119,11 +120,13 @@ public void doIt() {
@TestAnnotation
public static class AnnotatedClassTestImpl implements TestInterface {
+ @Override
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/ThisAndTargetSelectionOnlyPointcutsTests.java | @@ -115,6 +115,7 @@ interface TestInterface {
class TestImpl implements TestInterface {
+ @Override
public void doIt() {
}
}
\ No newline at end of file | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/_TestTypes.java | @@ -118,22 +118,27 @@ final class Counter implements ICounter {
public Counter() {
}
+ @Override
public void increment() {
count++;
}
+ @Override
public void decrement() {
count--;
}
+ @Override
public int getCount() {
return count;
}
+ @Override
public void setCount(int counter) {
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AnnotationPointcutTests.java | @@ -55,6 +55,7 @@ public void testNoMatchingWithoutAnnotationPresent() {
class TestMethodInterceptor implements MethodInterceptor {
+ @Override
public Object invoke(MethodInvocation methodInvocation) throws Throwable {
return "this value";
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AspectImplementingInterfaceTests.java | @@ -57,6 +57,7 @@ public void increment(ProceedingJoinPoint pjp) throws Throwable {
pjp.proceed();
}
+ @Override
public void interfaceMethod() {
}
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AspectJAutoProxyCreatorTests.java | @@ -387,6 +387,7 @@ public void countSetter() {
++count;
}
+ @Override
public int getOrder() {
return this.order;
}
@@ -438,14 +439,17 @@ public Object test(ProceedingJoinPoint pjp, int age) throws Throwable {
class DummyFactoryBean implements FactoryBean<Object> {
+ @Override
public Object getObje... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AtAspectJAnnotationBindingTests.java | @@ -82,16 +82,19 @@ public Object doWithAnnotation(ProceedingJoinPoint pjp, TestAnnotation testAnn)
class ResourceArrayFactoryBean implements FactoryBean<Object> {
+ @Override
@TestAnnotation("some value")
public Object getObject() throws Exception {
return new Resource[0];
}
+ @Override
@TestAnnotati... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/_TestTypes.java | @@ -72,22 +72,26 @@ interface AnnotatedTestBean {
*/
class AnnotatedTestBeanImpl implements AnnotatedTestBean {
+ @Override
@TestAnnotation("this value")
public String doThis() {
return "doThis";
}
+ @Override
@TestAnnotation("that value")
public String doThat() {
return "doThat";
}
+ @Overri... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/benchmark/BenchmarkTests.java | @@ -206,6 +206,7 @@ public int getMultiple() {
return this.multiple;
}
+ @Override
public Object invoke(MethodInvocation mi) throws Throwable {
++invocations;
int result = (Integer) mi.proceed();
@@ -219,13 +220,15 @@ class TraceAfterReturningAdvice implements AfterReturningAdvice {
public int afterT... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/spr3064/SPR3064Tests.java | @@ -81,6 +81,7 @@ interface Service {
class ServiceImpl implements Service {
+ @Override
@Transaction
public void serveMe() {
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/generic/GenericBridgeMethodMatchingTests.java | @@ -87,9 +87,11 @@ public void testGenericBaseInterfaceMethodThroughInterface() {
class DerivedStringParameterizedClass implements DerivedInterface<String> {
+ @Override
public void genericDerivedInterfaceMethod(String t) {
}
+ @Override
public void genericBaseInterfaceMethod(String t) {
}
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/aspectj/generic/GenericParameterMatchingTests.java | @@ -82,9 +82,11 @@ public void testGenericInterfaceSubtypeGenericCollectionArgExecution() {
static class GenericImpl<T> implements GenericInterface<T> {
+ @Override
public void save(T bean) {
}
+ @Override
public void saveAll(Collection<T> beans) {
}
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/framework/AbstractAopProxyTests.java | @@ -409,6 +409,7 @@ private void testContext(final boolean context) throws Throwable {
final String s = "foo";
// Test return value
MethodInterceptor mi = new MethodInterceptor() {
+ @Override
public Object invoke(MethodInvocation invocation) throws Throwable {
if (!context) {
assertNoInvocati... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/framework/CglibProxyTests.java | @@ -58,18 +58,21 @@ public final class CglibProxyTests extends AbstractAopProxyTests implements Seri
private static final String DEPENDENCY_CHECK_CONTEXT = CglibProxyTests.class.getSimpleName() + "-with-dependency-checking.xml";
+ @Override
protected Object createProxy(ProxyCreatorSupport as) {
as.setProxyT... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/framework/JdkDynamicProxyTests.java | @@ -42,13 +42,15 @@
@SuppressWarnings("serial")
public final class JdkDynamicProxyTests extends AbstractAopProxyTests implements Serializable {
+ @Override
protected Object createProxy(ProxyCreatorSupport as) {
assertFalse("Not forcible CGLIB", as.isProxyTargetClass());
Object proxy = as.createAopProxy().ge... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/framework/ProxyFactoryBeanTests.java | @@ -307,6 +307,7 @@ public void testCanGetFactoryReferenceAndManipulate() {
final Exception ex = new UnsupportedOperationException("invoke");
// Add evil interceptor to head of list
config.addAdvice(0, new MethodInterceptor() {
+ @Override
public Object invoke(MethodInvocation invocation) throws Throwabl... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/framework/_TestTypes.java | @@ -27,14 +27,17 @@ interface IEcho {
class Echo implements IEcho {
private int a;
+ @Override
public int echoException(int i, Throwable t) throws Throwable {
if (t != null)
throw t;
return i;
}
+ @Override
public void setA(int a) {
this.a = a;
}
+ @Override
public int getA() {
return a;
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/framework/adapter/AdvisorAdapterRegistrationTests.java | @@ -96,10 +96,12 @@ interface SimpleBeforeAdvice extends BeforeAdvice {
@SuppressWarnings("serial")
class SimpleBeforeAdviceAdapter implements AdvisorAdapter, Serializable {
+ @Override
public boolean supportsAdvice(Advice advice) {
return (advice instanceof SimpleBeforeAdvice);
}
+ @Override
public Meth... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/framework/autoproxy/AdvisorAutoProxyCreatorTests.java | @@ -218,6 +218,7 @@ public CountingTestBean() {
class SelectivePrototypeTargetSourceCreator extends AbstractBeanFactoryBasedTargetSourceCreator {
+ @Override
protected AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource(
Class<?> beanClass, String beanName) {
if (!beanName.startsWith("... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/framework/autoproxy/AutoProxyCreatorTests.java | @@ -281,6 +281,7 @@ public void setProxyObject(boolean proxyObject) {
this.proxyObject = proxyObject;
}
+ @Override
protected Object[] getAdvicesAndAdvisorsForBean(Class<?> beanClass, String name, TargetSource customTargetSource) {
if (StaticMessageSource.class.equals(beanClass)) {
return DO_NOT_P... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/framework/autoproxy/BeanNameAutoProxyCreatorInitTests.java | @@ -47,6 +47,7 @@ public void testIgnoreAdvisorThatIsCurrentlyCreation() {
class NullChecker implements MethodBeforeAdvice {
+ @Override
public void before(Method method, Object[] args, Object target) throws Throwable {
check(args);
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/aop/framework/autoproxy/BeanNameAutoProxyCreatorTests.java | @@ -205,20 +205,23 @@ class CreatesTestBean implements FactoryBean<Object> {
/**
* @see org.springframework.beans.factory.FactoryBean#getObject()
*/
+ @Override
public Object getObject() throws Exception {
return new TestBean();
}
/**
* @see org.springframework.beans.factory.FactoryBean#getObjectT... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/DerivedTestBean.java | @@ -51,12 +51,14 @@ public static DerivedTestBean create(String[] names) {
}
+ @Override
public void setBeanName(String beanName) {
if (this.beanName == null || beanName == null) {
this.beanName = beanName;
}
}
+ @Override
public String getBeanName() {
return beanName;
}
@@ -75,10 +77,12 @@... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/NestedTestBean.java | @@ -37,6 +37,7 @@ public void setCompany(String company) {
this.company = (company != null ? company : "");
}
+ @Override
public String getCompany() {
return company;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/SerializablePerson.java | @@ -31,22 +31,27 @@ public class SerializablePerson implements Person, Serializable {
private String name;
private int age;
+ @Override
public int getAge() {
return age;
}
+ @Override
public void setAge(int age) {
this.age = age;
}
+ @Override
public String getName() {
return name;
}
+ ... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/TestBean.java | @@ -137,6 +137,7 @@ public TestBean(Properties someProperties) {
}
+ @Override
public void setBeanName(String beanName) {
this.beanName = beanName;
}
@@ -145,6 +146,7 @@ public String getBeanName() {
return beanName;
}
+ @Override
public void setBeanFactory(BeanFactory beanFactory) {
this.beanF... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/AbstractBeanFactoryTests.java | @@ -317,6 +317,7 @@ public void testAliasing() {
public static class TestBeanEditor extends PropertyEditorSupport {
+ @Override
public void setAsText(String text) {
TestBean tb = new TestBean();
StringTokenizer st = new StringTokenizer(text, "_"); | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/DummyFactory.java | @@ -74,6 +74,7 @@ public DummyFactory() {
* Return if the bean managed by this factory is a singleton.
* @see org.springframework.beans.factory.FactoryBean#isSingleton()
*/
+ @Override
public boolean isSingleton() {
return this.singleton;
}
@@ -85,6 +86,7 @@ public void setSingleton(boolean singleton) {... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/LifecycleBean.java | @@ -53,6 +53,7 @@ public boolean isInitMethodDeclared() {
return initMethodDeclared;
}
+ @Override
public void setBeanName(String name) {
this.beanName = name;
}
@@ -61,6 +62,7 @@ public String getBeanName() {
return beanName;
}
+ @Override
public void setBeanFactory(BeanFactory beanFactory) {
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/MustBeInitialized.java | @@ -28,6 +28,7 @@ public class MustBeInitialized implements InitializingBean {
/**
* @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
*/
+ @Override
public void afterPropertiesSet() throws Exception {
this.inited = true;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/annotation/BridgeMethodAutowiringTests.java | @@ -49,6 +49,7 @@ class UserServiceImpl extends GenericServiceImpl<Foo> {
protected Foo object;
+ @Override
@Inject
@Named("userObject")
public void setObject(Foo object) { | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/config/SimpleMapScope.java | @@ -44,6 +44,7 @@ public final Map<String, Object> getMap() {
}
+ @Override
public Object get(String name, ObjectFactory<?> objectFactory) {
synchronized (this.map) {
Object scopedObject = this.map.get(name);
@@ -55,16 +56,19 @@ public Object get(String name, ObjectFactory<?> objectFactory) {
}
}
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/parsing/CollectingReaderEventListener.java | @@ -40,6 +40,7 @@ public class CollectingReaderEventListener implements ReaderEventListener {
private final List<ImportDefinition> imports = new LinkedList<ImportDefinition>();
+ @Override
public void defaultsRegistered(DefaultsDefinition defaultsDefinition) {
this.defaults.add(defaultsDefinition);
}
@@ -4... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/xml/DependenciesBean.java | @@ -65,6 +65,7 @@ public TestBean getSpouse() {
return spouse;
}
+ @Override
public void setBeanFactory(BeanFactory beanFactory) {
this.beanFactory = beanFactory;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/xml/QualifierAnnotationTests.java | @@ -389,14 +389,17 @@ public static class ThetaImpl implements Theta {
@Qualifier(FACTORY_QUALIFIER)
public static class QualifiedFactoryBean implements FactoryBean<Theta> {
+ @Override
public Theta getObject() {
return new Theta() {};
}
+ @Override
public Class<Theta> getObjectType() {
retur... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTestTypes.java | @@ -256,6 +256,7 @@ public DummyBoImpl(DummyDao dao) {
this.dao = dao;
}
+ @Override
public void something() {
}
@@ -430,6 +431,7 @@ class FixedMethodReplacer implements MethodReplacer {
public static final String VALUE = "fixedMethodReplacer";
+ @Override
public Object reimplement(Object obj, Meth... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTests.java | @@ -1511,6 +1511,7 @@ public static class DoSomethingReplacer implements MethodReplacer {
public Object lastArg;
+ @Override
public Object reimplement(Object obj, Method method, Object[] args) throws Throwable {
assertEquals(1, args.length);
assertEquals("doSomething", method.getName());
@@ -1558,6 +... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/beans/factory/xml/support/CustomNamespaceHandlerTests.java | @@ -194,6 +194,7 @@ public DummySchemaResolver() {
super(CLASS.getClassLoader());
}
+ @Override
public InputSource resolveEntity(String publicId, String systemId) throws IOException {
InputSource source = super.resolveEntity(publicId, systemId);
if (source == null) {
@@ -216,6 +217,7 @@ public Inpu... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/cache/config/AnnotatedClassCacheableService.java | @@ -32,105 +32,127 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
private final AtomicLong counter = new AtomicLong();
public static final AtomicLong nullInvocations = new AtomicLong();
+ @Override
public Object cache(Object arg1) {
return counter.getAndIncrement();
}
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/cache/config/DefaultCacheableService.java | @@ -33,110 +33,132 @@ public class DefaultCacheableService implements CacheableService<Long> {
private final AtomicLong counter = new AtomicLong();
private final AtomicLong nullInvocations = new AtomicLong();
+ @Override
@Cacheable("default")
public Long cache(Object arg1) {
return counter.getAndIncrement(... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/cache/config/EnableCachingTests.java | @@ -115,6 +115,7 @@ public void noCacheManagerBeans() throws Throwable {
@Configuration
@EnableCaching
static class EnableCachingConfig implements CachingConfigurer {
+ @Override
@Bean
public CacheManager cacheManager() {
SimpleCacheManager cm = new SimpleCacheManager();
@@ -135,6 +136,7 @@ public Cach... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/ACATester.java | @@ -22,6 +22,7 @@ public class ACATester implements ApplicationContextAware {
private ApplicationContext ac;
+ @Override
public void setApplicationContext(ApplicationContext ctx) throws ApplicationContextException {
// check reinitialization
if (this.ac != null) { | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/AbstractApplicationContextTests.java | @@ -39,10 +39,12 @@ public abstract class AbstractApplicationContextTests extends AbstractListableBe
protected TestListener parentListener = new TestListener();
+ @Override
protected void setUp() throws Exception {
this.applicationContext = createContext();
}
+ @Override
protected BeanFactory getBeanFa... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/BeanThatBroadcasts.java | @@ -26,6 +26,7 @@ public class BeanThatBroadcasts implements ApplicationContextAware {
public int receivedCount;
+ @Override
public void setApplicationContext(ApplicationContext applicationContext) {
this.applicationContext = applicationContext;
if (applicationContext.getDisplayName().indexOf("listener") ... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/BeanThatListens.java | @@ -43,6 +43,7 @@ public BeanThatListens(BeanThatBroadcasts beanThatBroadcasts) {
}
+ @Override
public void onApplicationEvent(ApplicationEvent event) {
eventCount++;
if (beanThatBroadcasts != null) { | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/LifecycleContextBean.java | @@ -30,18 +30,21 @@ public class LifecycleContextBean extends LifecycleBean implements ApplicationCo
protected ApplicationContext owningContext;
+ @Override
public void setBeanFactory(BeanFactory beanFactory) {
super.setBeanFactory(beanFactory);
if (this.owningContext != null)
throw new RuntimeExcepti... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/TestListener.java | @@ -34,6 +34,7 @@ public void zeroCounter() {
eventCount = 0;
}
+ @Override
public void onApplicationEvent(ApplicationEvent e) {
++eventCount;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/access/ContextSingletonBeanFactoryLocatorTests.java | @@ -47,6 +47,7 @@ public void testBaseBeanFactoryDefs() {
new XmlBeanFactory(new ClassPathResource("/org/springframework/beans/factory/access/beans2.xml"));
}
+ @Override
@Test
public void testBasicFunctionality() {
ContextSingletonBeanFactoryLocator facLoc = new ContextSingletonBeanFactoryLocator(
@@ -71... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/AnnotationConfigApplicationContextTests.java | @@ -159,18 +159,22 @@ public void nullReturningBeanPostProcessor() {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
context.register(AutowiredConfig.class);
context.getBeanFactory().addBeanPostProcessor(new BeanPostProcessor() {
+ @Override
public Object postProces... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/AnnotationProcessorPerformanceTests.java | @@ -151,6 +151,7 @@ public void testPrototypeCreationWithOverriddenAutowiredPropertiesIsFastEnough()
private static class ResourceAnnotatedTestBean extends TestBean {
+ @Override
@Resource @Required
public void setSpouse(ITestBean spouse) {
super.setSpouse(spouse);
@@ -160,6 +161,7 @@ public void setSp... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/CommonAnnotationBeanPostProcessorTests.java | @@ -207,6 +207,7 @@ public void testResourceInjectionWithResolvableDependencyType() {
bf.registerResolvableDependency(BeanFactory.class, bf);
bf.registerResolvableDependency(INestedTestBean.class, new ObjectFactory<Object>() {
+ @Override
public Object getObject() throws BeansException {
return new N... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/ComponentScanParserTests.java | @@ -147,6 +147,7 @@ public static class CustomAnnotationDependencyBean {
public static class CustomTypeFilter implements TypeFilter {
+ @Override
public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) {
return metadataReader.getClassMetadata().getClassName().conta... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/ConfigurationClassAndBFPPTests.java | @@ -75,6 +75,7 @@ static class AutowiredConfigWithBFPPAsInstanceMethod {
@Bean
public BeanFactoryPostProcessor bfpp() {
return new BeanFactoryPostProcessor() {
+ @Override
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
// no-op
}
@@ -... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/ConfigurationWithFactoryBeanAndAutowiringTests.java | @@ -95,12 +95,15 @@ class DummyBean {
class MyFactoryBean implements FactoryBean<String> {
+ @Override
public String getObject() throws Exception {
return "foo";
}
+ @Override
public Class<String> getObjectType() {
return String.class;
}
+ @Override
public boolean isSingleton() {
return true;
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/ConfigurationWithFactoryBeanAndParametersTests.java | @@ -63,14 +63,17 @@ public Bar(Foo foo) {
class FooFactoryBean implements FactoryBean<Foo> {
+ @Override
public Foo getObject() {
return new Foo();
}
+ @Override
public Class<Foo> getObjectType() {
return Foo.class;
}
+ @Override
public boolean isSingleton() {
return true;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/DestroyMethodInferenceTests.java | @@ -140,6 +140,7 @@ public void close() {
static class WithInheritedCloseMethod implements Closeable {
boolean closed = false;
+ @Override
public void close() throws IOException {
closed = true;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/EnableLoadTimeWeavingTests.java | @@ -70,6 +70,7 @@ public void enableLTW_withAjWeavingEnabled() {
@Configuration
@EnableLoadTimeWeaving(aspectjWeaving=AspectJWeaving.DISABLED)
static class EnableLTWConfig_withAjWeavingDisabled implements LoadTimeWeavingConfigurer {
+ @Override
public LoadTimeWeaver getLoadTimeWeaver() {
LoadTimeWeaver mo... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/FooServiceDependentConverter.java | @@ -31,6 +31,7 @@ public void setFooService(FooService fooService) {
this.fooService = fooService;
}
+ @Override
public org.springframework.beans.TestBean convert(String source) {
return new org.springframework.beans.TestBean(source);
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/ImportAwareTests.java | @@ -124,6 +124,7 @@ static class ImportedConfig implements ImportAware {
AnnotationMetadata importMetadata;
+ @Override
public void setImportMetadata(AnnotationMetadata importMetadata) {
this.importMetadata = importMetadata;
}
@@ -142,14 +143,17 @@ public AsyncAnnotationBeanPostProcessor asyncBPP() {
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/ImportBeanDefinitionRegistrarTests.java | @@ -75,18 +75,22 @@ static class SampleRegistrar implements ImportBeanDefinitionRegistrar, BeanClass
static ResourceLoader resourceLoader;
static BeanFactory beanFactory;
+ @Override
public void setBeanClassLoader(ClassLoader classLoader) {
SampleRegistrar.classLoader = classLoader;
}
+ @Override
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/NestedConfigurationClassTests.java | @@ -132,6 +132,7 @@ public TestBean overrideBean() {
@Configuration
static class S1Config extends L0Config {
+ @Override
@Bean
public TestBean overrideBean() {
return new TestBean("override-s1"); | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/Spr3775InitDestroyLifecycleTests.java | @@ -209,10 +209,12 @@ public void customDestroy() throws Exception {
public static class CustomInitializingDisposableBean extends CustomInitDestroyBean
implements InitializingBean, DisposableBean {
+ @Override
public void afterPropertiesSet() throws Exception {
this.initMethods.add("afterPropertiesSet")... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/Spr6602Tests.java | @@ -85,14 +85,17 @@ public static class Bar {
public static class BarFactory implements FactoryBean<Bar> {
+ @Override
public Bar getObject() throws Exception {
return new Bar();
}
+ @Override
public Class<? extends Bar> getObjectType() {
return Bar.class;
}
+ @Override
public boolea... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/TestBeanNameGenerator.java | @@ -24,6 +24,7 @@
*/
public class TestBeanNameGenerator extends AnnotationBeanNameGenerator {
+ @Override
public String generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry) {
String beanName = super.generateBeanName(definition, registry);
return "testing." + beanName; | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/TestScopeMetadataResolver.java | @@ -23,6 +23,7 @@
*/
public class TestScopeMetadataResolver implements ScopeMetadataResolver {
+ @Override
public ScopeMetadata resolveScopeMetadata(BeanDefinition beanDefinition) {
ScopeMetadata metadata = new ScopeMetadata();
metadata.setScopeName("myCustomScope"); | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/configuration/ConfigurationBeanNameTests.java | @@ -65,6 +65,7 @@ public void registerNestedConfig() {
public void registerOuterConfig_withBeanNameGenerator() {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
ctx.setBeanNameGenerator(new AnnotationBeanNameGenerator() {
+ @Override
public String generateBeanName(
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/configuration/ConfigurationClassCglibCallbackDeregistrationTests.java | @@ -70,6 +70,7 @@ static class Config {
@Configuration
static class DisposableConfig implements DisposableBean {
boolean destroyed = false;
+ @Override
public void destroy() throws Exception {
this.destroyed = true;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/configuration/ConfigurationClassProcessingTests.java | @@ -284,12 +284,14 @@ public POBPP beanPostProcessor() {
public void setNameSuffix(String nameSuffix) {
this.nameSuffix = nameSuffix;
}
+ @Override
public Object postProcessBeforeInitialization(Object bean, String beanName) {
if (bean instanceof ITestBean) {
((ITestBean) bean).setNa... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/configuration/ScopingTests.java | @@ -379,6 +379,7 @@ static class CustomScope implements org.springframework.beans.factory.config.Sco
private Map<String, Object> beans = new HashMap<String, Object>();
+ @Override
public Object get(String name, ObjectFactory<?> objectFactory) {
if (createNewScope) {
beans.clear();
@@ -396,18 +397,22... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation/configuration/Spr7167Tests.java | @@ -67,6 +67,7 @@ class MyPostProcessor implements BeanFactoryPostProcessor {
public MyPostProcessor(Dependency someDependency) {
}
+ @Override
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
AbstractBeanDefinition bd = (AbstractBeanDefinition) beanFact... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation3/StubFooDao.java | @@ -28,6 +28,7 @@
@Qualifier("testing")
public class StubFooDao implements FooDao {
+ @Override
public String findFoo(int id) {
return "bar";
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/annotation5/OtherFooDao.java | @@ -24,6 +24,7 @@
@MyRepository
public class OtherFooDao implements FooDao {
+ @Override
public String findFoo(int id) {
return "other";
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/conversionservice/StringToBarConverter.java | @@ -23,6 +23,7 @@
*/
public class StringToBarConverter implements Converter<String, Bar> {
+ @Override
public Bar convert(String source) {
return new Bar(source);
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/event/ApplicationContextEventTests.java | @@ -214,10 +214,12 @@ public static class MyOrderedListener1 implements ApplicationListener<Applicatio
public final Set<ApplicationEvent> seenEvents = new HashSet<ApplicationEvent>();
+ @Override
public void onApplicationEvent(ApplicationEvent event) {
this.seenEvents.add(event);
}
+ @Override
p... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/event/EventPublicationInterceptorTests.java | @@ -90,6 +90,7 @@ public void testExpectedBehavior() throws Exception {
final TestListener listener = new TestListener();
class TestContext extends StaticApplicationContext {
+ @Override
protected void onRefresh() throws BeansException {
addListener(listener);
}
@@ -140,14 +141,17 @@ public TestE... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/event/LifecycleEventTests.java | @@ -71,6 +71,7 @@ private static class LifecycleListener implements ApplicationListener<Applicatio
private int stoppedCount;
+ @Override
public void onApplicationEvent(ApplicationEvent event) {
if (event instanceof ContextStartedEvent) {
this.context = ((ContextStartedEvent) event).getApplicationCon... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/expression/ApplicationContextExpressionTests.java | @@ -57,14 +57,18 @@ public void genericApplicationContext() throws Exception {
AnnotationConfigUtils.registerAnnotationConfigProcessors(ac);
ac.getBeanFactory().registerScope("myScope", new Scope() {
+ @Override
public Object get(String name, ObjectFactory<?> objectFactory) {
return objectFactory.get... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/support/BeanFactoryPostProcessorTests.java | @@ -104,6 +104,7 @@ public void setInitValue(String initValue) {
public boolean wasCalled = false;
+ @Override
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {
wasCalled = true;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/support/ClassPathXmlApplicationContextTests.java | @@ -320,6 +320,7 @@ private void assertOneMessageSourceOnly(ClassPathXmlApplicationContext ctx, Obje
@Test
public void testResourceAndInputStream() throws IOException {
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(RESOURCE_CONTEXT) {
+ @Override
public Resource getResource(String... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/support/ConversionServiceFactoryBeanTests.java | @@ -54,24 +54,29 @@ public void createDefaultConversionServiceWithSupplements() {
ConversionServiceFactoryBean factory = new ConversionServiceFactoryBean();
Set<Object> converters = new HashSet<Object>();
converters.add(new Converter<String, Foo>() {
+ @Override
public Foo convert(String source) {
r... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/support/DefaultLifecycleProcessorTests.java | @@ -585,17 +585,20 @@ private TestLifecycleBean(CopyOnWriteArrayList<Lifecycle> startedBeans, CopyOnW
this.stoppedBeans = stoppedBeans;
}
+ @Override
public boolean isRunning() {
return this.running;
}
+ @Override
public void start() {
if (this.startedBeans != null) {
this.startedBea... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/support/FactoryBeanAndApplicationListener.java | @@ -10,18 +10,22 @@
*/
public class FactoryBeanAndApplicationListener implements FactoryBean<String>, ApplicationListener<ApplicationEvent> {
+ @Override
public String getObject() throws Exception {
return "";
}
+ @Override
public Class<String> getObjectType() {
return String.class;
}
+ @Override... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/support/LifecycleTestBean.java | @@ -43,15 +43,18 @@ public int getStopOrder() {
return stopOrder;
}
+ @Override
public boolean isRunning() {
return this.running;
}
+ @Override
public void start() {
this.startOrder = ++startCounter;
this.running = true;
}
+ @Override
public void stop() {
this.stopOrder = ++stopCounter;... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-context/src/test/java/org/springframework/context/support/Logic.java | @@ -34,6 +34,7 @@ public void setAssembler(Assembler a) {
/* (non-Javadoc)
* @see org.springframework.beans.factory.BeanNameAware#setBeanName(java.lang.String)
*/
+ @Override
public void setBeanName(String name) {
this.name = name;
} | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.