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 | 7c3cdf82cc3bff05a61595db3bcb0a6cf644e116.json | Try a different mbean port | spring-context/src/test/java/org/springframework/jmx/support/MBeanServerConnectionFactoryBeanTests.java | @@ -37,7 +37,7 @@
*/
public class MBeanServerConnectionFactoryBeanTests extends AbstractMBeanServerTests {
- private static final String SERVICE_URL = "service:jmx:jmxmp://localhost:9876";
+ private static final String SERVICE_URL = "service:jmx:jmxmp://localhost:9878";
private JMXServiceURL getServiceUrl() th... | false |
Other | spring-projects | spring-framework | b830d7362df24ed0953009b8172a7d67f7b73fe9.json | Support non-public anno. attr. values in AnnoUtils
Prior to this commit, the getValue(Annotation, String) method in
AnnotationUtils failed to retrieve the value of the desired annotation
attribute if the annotation itself was not public -- for example if the
annotation was declared as package private.
This commit add... | spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java | @@ -31,6 +31,7 @@
import org.springframework.core.BridgeMethodResolver;
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
+import org.springframework.util.ReflectionUtils;
/**
* General utility methods for working with annotations, handling bridge methods (which the compiler
@... | true |
Other | spring-projects | spring-framework | b830d7362df24ed0953009b8172a7d67f7b73fe9.json | Support non-public anno. attr. values in AnnoUtils
Prior to this commit, the getValue(Annotation, String) method in
AnnotationUtils failed to retrieve the value of the desired annotation
attribute if the annotation itself was not public -- for example if the
annotation was declared as package private.
This commit add... | spring-core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java | @@ -29,10 +29,10 @@
import org.junit.Test;
import org.springframework.core.Ordered;
+import org.springframework.core.annotation.subpackage.NonPublicAnnotatedClass;
import org.springframework.stereotype.Component;
import static org.hamcrest.Matchers.*;
-
import static org.junit.Assert.*;
import static org.spri... | true |
Other | spring-projects | spring-framework | b830d7362df24ed0953009b8172a7d67f7b73fe9.json | Support non-public anno. attr. values in AnnoUtils
Prior to this commit, the getValue(Annotation, String) method in
AnnotationUtils failed to retrieve the value of the desired annotation
attribute if the annotation itself was not public -- for example if the
annotation was declared as package private.
This commit add... | spring-core/src/test/java/org/springframework/core/annotation/subpackage/NonPublicAnnotatedClass.java | @@ -0,0 +1,28 @@
+/*
+ * Copyright 2002-2013 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | b830d7362df24ed0953009b8172a7d67f7b73fe9.json | Support non-public anno. attr. values in AnnoUtils
Prior to this commit, the getValue(Annotation, String) method in
AnnotationUtils failed to retrieve the value of the desired annotation
attribute if the annotation itself was not public -- for example if the
annotation was declared as package private.
This commit add... | spring-core/src/test/java/org/springframework/core/annotation/subpackage/NonPublicAnnotation.java | @@ -0,0 +1,32 @@
+/*
+ * Copyright 2002-2013 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *... | true |
Other | spring-projects | spring-framework | 9c2046c3ee6a1c3699346bf7bdea27b483be2b86.json | Update main source and target JDK compatibility
Update source and target compatibility from 1.5 to 1.6, meaning that
@Override is now allowed on implementations of interface methods within
main classes.
Issue: SPR-10130 | build.gradle | @@ -33,8 +33,8 @@ configure(allprojects) {
group = "org.springframework"
compileJava {
- sourceCompatibility=1.5
- targetCompatibility=1.5
+ sourceCompatibility=1.6
+ targetCompatibility=1.6
}
compileTestJava {
sourceCompatibility=1.7 | false |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/aspectj/AspectJExpressionPointcutTests.java | @@ -113,6 +113,7 @@ public void testTarget() throws SecurityException, NoSuchMethodException {
public static class OtherIOther implements IOther {
+ @Override
public void absquatulate() {
// Empty
}
@@ -354,6 +355,7 @@ class CallCountingInterceptor implements MethodInterceptor {
private int count;
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/aspectj/BeanNamePointcutMatchingTests.java | @@ -90,6 +90,7 @@ private void assertMisMatch(String beanName, String pcExpression) {
private static boolean matches(final String beanName, String pcExpression) {
@SuppressWarnings("serial")
AspectJExpressionPointcut pointcut = new AspectJExpressionPointcut() {
+ @Override
protected String getCurrentProxi... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/aspectj/MethodInvocationProceedingJoinPointTests.java | @@ -79,6 +79,7 @@ public void testCanGetMethodSignatureFromJoinPoint() {
pf.addAdvice(new MethodBeforeAdvice() {
private int depth;
+ @Override
public void before(Method method, Object[] args, Object target) throws Throwable {
JoinPoint jp = AbstractAspectJAdvice.currentJoinPoint();
assertTrue(... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/aspectj/TrickyAspectJPointcutExpressionTests.java | @@ -137,6 +137,7 @@ public static interface TestService {
@Log
public static class TestServiceImpl implements TestService {
+ @Override
public String sayHello() {
throw new TestException("TestServiceImpl");
}
@@ -148,6 +149,7 @@ public class LogUserAdvice implements MethodBeforeAdvice, ThrowsAdvice {
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AbstractAspectJAdvisorFactoryTests.java | @@ -675,19 +675,23 @@ public int getInstantiationCount() {
return this.count;
}
+ @Override
public Object getAspectInstance() {
++this.count;
return new PerTypeWithinAspect();
}
+ @Override
public ClassLoader getAspectClassLoader() {
return PerTypeWithinAspect.class.getClassLoader();
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/ArgumentBindingTests.java | @@ -84,6 +84,7 @@ public interface ITransactionalBean {
public static class TransactionalBean implements ITransactionalBean {
+ @Override
@Transactional
public void doInTransaction() {
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/aspectj/annotation/AspectProxyFactoryTests.java | @@ -111,6 +111,7 @@ public static class TestBean implements ITestBean {
private int age;
+ @Override
public int getAge() {
return age;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/aspectj/autoproxy/AspectJPrecedenceComparatorTests.java | @@ -194,6 +194,7 @@ private Advisor createAspectJAdvice(int advisorOrder, int adviceDeclarationOrder
private Advisor createSpringAOPAfterAdvice(int order) {
AfterReturningAdvice advice = new AfterReturningAdvice() {
+ @Override
public void afterReturning(Object returnValue, Method method, Object[] args, Ob... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/framework/AopProxyUtilsTests.java | @@ -129,6 +129,7 @@ public void testProxiedUserInterfacesWithMultipleInterfaces() {
public void testProxiedUserInterfacesWithNoInterface() {
Object proxy = Proxy.newProxyInstance(getClass().getClassLoader(), new Class[0],
new InvocationHandler() {
+ @Override
public Object invoke(Object proxy, Metho... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/framework/IntroductionBenchmarkTests.java | @@ -42,6 +42,7 @@ public final class IntroductionBenchmarkTests {
@SuppressWarnings("serial")
public static class SimpleCounterIntroduction extends DelegatingIntroductionInterceptor implements Counter {
+ @Override
public int getCount() {
return EXPECTED_COMPARE;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/framework/MethodInvocationTests.java | @@ -42,6 +42,7 @@ public void testValidInvocation() throws Throwable {
final Object returnValue = new Object();
List<Object> is = new LinkedList<Object>();
is.add(new MethodInterceptor() {
+ @Override
public Object invoke(MethodInvocation invocation) throws Throwable {
return returnValue;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/framework/NullPrimitiveTests.java | @@ -44,6 +44,7 @@ static interface Foo {
public void testNullPrimitiveWithJdkProxy() {
class SimpleFoo implements Foo {
+ @Override
public int getValue() {
return 100;
}
@@ -52,6 +53,7 @@ public int getValue() {
SimpleFoo target = new SimpleFoo();
ProxyFactory factory = new ProxyFactory(targ... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/framework/PrototypeTargetTests.java | @@ -73,6 +73,7 @@ public TestBeanImpl() {
constructionCount++;
}
+ @Override
public void doSomething() {
}
}
@@ -81,6 +82,7 @@ public void doSomething() {
public static class TestInterceptor implements MethodInterceptor {
private int invocationCount = 0;
+ @Override
public Object invoke(Met... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/framework/ProxyFactoryTests.java | @@ -165,6 +165,7 @@ public void testReplaceAdvisor() {
@Test
public void testAddRepeatedInterface() {
TimeStamped tst = new TimeStamped() {
+ @Override
public long getTimeStamp() {
throw new UnsupportedOperationException("getTimeStamp");
}
@@ -181,6 +182,7 @@ public long getTimeStamp() {
public ... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/framework/adapter/ThrowsAdviceInterceptorTests.java | @@ -125,6 +125,7 @@ public void testHandlerMethodThrowsException() throws Throwable {
@SuppressWarnings("serial")
MyThrowsHandler th = new MyThrowsHandler() {
+ @Override
public void afterThrowing(RemoteException ex) throws Throwable {
super.afterThrowing(ex);
throw t; | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/interceptor/ConcurrencyThrottleInterceptorTests.java | @@ -120,6 +120,7 @@ public ConcurrencyThread(ITestBean proxy, Throwable ex) {
this.ex = ex;
}
+ @Override
public void run() {
if (this.ex != null) {
try { | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/interceptor/CustomizableTraceInterceptorTests.java | @@ -189,6 +189,7 @@ public StubCustomizableTraceInterceptor(Log log) {
this.log = log;
}
+ @Override
protected Log getLoggerForInvocation(MethodInvocation invocation) {
return this.log;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/interceptor/DebugInterceptorTests.java | @@ -96,6 +96,7 @@ public StubDebugInterceptor(Log log) {
this.log = log;
}
+ @Override
protected Log getLoggerForInvocation(MethodInvocation invocation) {
return log;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/interceptor/ExposeBeanNameAdvisorsTests.java | @@ -38,6 +38,7 @@ public RequiresBeanNameBoundTestBean(String beanName) {
this.beanName = beanName;
}
+ @Override
public int getAge() {
assertEquals(beanName, ExposeBeanNameAdvisors.getBeanName());
return super.getAge(); | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/interceptor/ExposeInvocationInterceptorTests.java | @@ -53,12 +53,14 @@ public void testXmlConfig() {
abstract class ExposedInvocationTestBean extends TestBean {
+ @Override
public String getName() {
MethodInvocation invocation = ExposeInvocationInterceptor.currentInvocation();
assertions(invocation);
return super.getName();
}
+ @Override
public vo... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/support/AopUtilsTests.java | @@ -40,6 +40,7 @@ public final class AopUtilsTests {
@Test
public void testPointcutCanNeverApply() {
class TestPointcut extends StaticMethodMatcherPointcut {
+ @Override
public boolean matches(Method method, Class<?> clazzy) {
return false;
}
@@ -58,6 +59,7 @@ public void testPointcutAlwaysApplies... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/support/ComposablePointcutTests.java | @@ -35,24 +35,28 @@
public final class ComposablePointcutTests {
public static MethodMatcher GETTER_METHOD_MATCHER = new StaticMethodMatcher() {
+ @Override
public boolean matches(Method m, Class<?> targetClass) {
return m.getName().startsWith("get");
}
};
public static MethodMatcher GET_AGE_METHO... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/support/DelegatingIntroductionInterceptorTests.java | @@ -112,8 +112,10 @@ public void testIntroductionInterceptorWithSuperInterface() throws Exception {
public void testAutomaticInterfaceRecognitionInDelegate() throws Exception {
final long t = 1001L;
class Tester implements TimeStamped, ITester {
+ @Override
public void foo() throws Exception {
}
+ @... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/support/JdkRegexpMethodPointcutTests.java | @@ -21,6 +21,7 @@
*/
public final class JdkRegexpMethodPointcutTests extends AbstractRegexpMethodPointcutTests {
+ @Override
protected AbstractRegexpMethodPointcut getRegexpMethodPointcut() {
return new JdkRegexpMethodPointcut();
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/support/MethodMatchersTests.java | @@ -107,19 +107,22 @@ public static class StartsWithMatcher extends StaticMethodMatcher {
public StartsWithMatcher(String s) {
this.prefix = s;
}
+ @Override
public boolean matches(Method m, Class<?> targetClass) {
return m.getName().startsWith(prefix);
}
}
private static class TestDynamicM... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/support/PointcutsTests.java | @@ -53,14 +53,17 @@ public final class PointcutsTests {
* Matches only TestBean class, not subclasses
*/
public static Pointcut allTestBeanMethodsPointcut = new StaticMethodMatcherPointcut() {
+ @Override
public ClassFilter getClassFilter() {
return new ClassFilter() {
+ @Override
public boolean... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/target/LazyCreationTargetSourceTests.java | @@ -32,9 +32,11 @@ public final class LazyCreationTargetSourceTests {
@Test
public void testCreateLazy() {
TargetSource targetSource = new AbstractLazyCreationTargetSource() {
+ @Override
protected Object createObject() {
return new InitCountingBean();
}
+ @Override
public Class<?> getTarget... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/target/LazyInitTargetSourceTests.java | @@ -83,6 +83,7 @@ public void testLazyInitFactoryBeanTargetSource() {
@SuppressWarnings("serial")
public static class CustomLazyInitTargetSource extends LazyInitTargetSource {
+ @Override
protected void postProcessTargetObject(Object targetObject) {
((ITestBean) targetObject).setName("Rob Harrop");
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/target/PrototypeBasedTargetSourceTests.java | @@ -70,10 +70,12 @@ private static class TestTargetSource extends AbstractPrototypeBasedTargetSource
*/
private TestBean thisFieldIsNotSerializable = new TestBean();
+ @Override
public Object getTarget() throws Exception {
return newPrototypeInstance();
}
+ @Override
public void releaseTarget(... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/target/ThreadLocalTargetSourceTests.java | @@ -113,6 +113,7 @@ public void testNewThreadHasOwnInstance() throws InterruptedException {
class Runner implements Runnable {
public SideEffectBean mine;
+ @Override
public void run() {
this.mine = (SideEffectBean) beanFactory.getBean("apartment");
assertEquals(INITIAL_COUNT, mine.getCount() )... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/org/springframework/aop/target/dynamic/RefreshableTargetSourceTests.java | @@ -116,6 +116,7 @@ public CountingRefreshableTargetSource(boolean requiresRefresh) {
this.requiresRefresh = requiresRefresh;
}
+ @Override
protected Object freshTarget() {
this.callCount++;
return new Object();
@@ -125,6 +126,7 @@ public int getCallCount() {
return this.callCount;
}
+ @O... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/test/aop/CountingBeforeAdvice.java | @@ -28,6 +28,7 @@
@SuppressWarnings("serial")
public class CountingBeforeAdvice extends MethodCounter implements MethodBeforeAdvice {
+ @Override
public void before(Method m, Object[] args, Object target) throws Throwable {
count(m);
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/test/aop/DefaultLockable.java | @@ -25,14 +25,17 @@ public class DefaultLockable implements Lockable {
private boolean locked;
+ @Override
public void lock() {
this.locked = true;
}
+ @Override
public void unlock() {
this.locked = false;
}
+ @Override
public boolean locked() {
return this.locked;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/test/aop/NopInterceptor.java | @@ -31,6 +31,7 @@ public class NopInterceptor implements MethodInterceptor {
/**
* @see org.aopalliance.intercept.MethodInterceptor#invoke(MethodInvocation)
*/
+ @Override
public Object invoke(MethodInvocation invocation) throws Throwable {
increment();
return invocation.proceed(); | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/test/aop/PerTargetAspect.java | @@ -25,6 +25,7 @@ public void countSetter() {
++count;
}
+ @Override
public int getOrder() {
return this.order;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/test/aop/SerializableNopInterceptor.java | @@ -37,10 +37,12 @@ public class SerializableNopInterceptor extends NopInterceptor implements Serial
*/
private int count;
+ @Override
public int getCount() {
return this.count;
}
+ @Override
protected void increment() {
++count;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/test/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-aop/src/test/java/test/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-aop/src/test/java/test/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-aop/src/test/java/test/beans/TestBean.java | @@ -146,10 +146,12 @@ public boolean isPostProcessed() {
return postProcessed;
}
+ @Override
public String getName() {
return name;
}
+ @Override
public void setName(String name) {
this.name = name;
}
@@ -165,10 +167,12 @@ public void setSex(String sex) {
}
}
+ @Override
public int getAg... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-aop/src/test/java/test/parsing/CollectingReaderEventListener.java | @@ -46,6 +46,7 @@ public class CollectingReaderEventListener implements ReaderEventListener {
private final List<ImportDefinition> imports = new LinkedList<ImportDefinition>();
+ @Override
public void defaultsRegistered(DefaultsDefinition defaultsDefinition) {
this.defaults.add(defaultsDefinition);
}
@@ -5... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/com/foo/ComponentBeanDefinitionParser.java | @@ -13,6 +13,7 @@
public class ComponentBeanDefinitionParser extends AbstractBeanDefinitionParser {
+ @Override
protected AbstractBeanDefinition parseInternal(Element element,
ParserContext parserContext) {
return parseComponentElement(element); | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/com/foo/ComponentFactoryBean.java | @@ -16,6 +16,7 @@ public void setChildren(List<Component> children) {
this.children = children;
}
+ @Override
public Component getObject() throws Exception {
if (this.children != null && this.children.size() > 0) {
for (Component child : children) {
@@ -25,10 +26,12 @@ public Component getObject() throw... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/com/foo/ComponentNamespaceHandler.java | @@ -3,6 +3,7 @@
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
public class ComponentNamespaceHandler extends NamespaceHandlerSupport {
+ @Override
public void init() {
registerBeanDefinitionParser("component",
new ComponentBeanDefinitionParser()); | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/BeanUtilsTests.java | @@ -360,18 +360,22 @@ private static class Bean implements MapEntry<String, String> {
private String value;
+ @Override
public String getKey() {
return key;
}
+ @Override
public void setKey(String aKey) {
key = aKey;
}
+ @Override
public String getValue() {
return value;
}
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/BeanWrapperGenericsTests.java | @@ -507,6 +507,7 @@ private static class NestedGenericCollectionBean extends BaseGenericCollectionBe
private Map<String, List<List<Integer>>> mapOfListOfListOfInteger;
+ @Override
public Map<String, Integer> getMapOfInteger() {
return mapOfInteger;
}
@@ -515,10 +516,12 @@ public void setMapOfInteger(M... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/BeanWrapperTests.java | @@ -329,6 +329,7 @@ public void testConvertClassToString() {
TestBean tb = new TestBean();
BeanWrapper bw = new BeanWrapperImpl(tb);
bw.registerCustomEditor(String.class, new PropertyEditorSupport() {
+ @Override
public void setValue(Object value) {
super.setValue(value.toString());
}
@@ -500,6 ... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/ConcurrentBeanWrapperTests.java | @@ -115,6 +115,7 @@ public TestRun(ConcurrentBeanWrapperTests test) {
this.test = test;
}
+ @Override
public void run() {
try {
for (int i = 0; i < 100; i++) { | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/ExtendedBeanInfoTests.java | @@ -214,6 +214,7 @@ public Integer getProperty1() {
@Test
public void cornerSpr9453() throws IntrospectionException {
final class Bean implements Spr9453<Class<?>> {
+ @Override
public Class<?> getProp() {
return null;
}
@@ -589,7 +590,9 @@ public void subclassWriteMethodWithCovariantReturnType() ... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/annotation/RequiredAnnotationBeanPostProcessorTests.java | @@ -182,10 +182,12 @@ public void setJobTitle(String jobTitle) {
this.jobTitle = jobTitle;
}
+ @Override
@Required
public void setBeanName(String name) {
}
+ @Override
@Required
public void setBeanFactory(BeanFactory beanFactory) {
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/ConcurrentBeanFactoryTests.java | @@ -72,6 +72,7 @@ public final class ConcurrentBeanFactoryTests {
public void setUp() throws Exception {
XmlBeanFactory factory = new XmlBeanFactory(CONTEXT);
factory.addPropertyEditorRegistrar(new PropertyEditorRegistrar() {
+ @Override
public void registerCustomEditors(PropertyEditorRegistry registry) {... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java | @@ -836,6 +836,7 @@ public void testCanEscapeBeanReferenceSyntax() {
public void testCustomEditor() {
DefaultListableBeanFactory lbf = new DefaultListableBeanFactory();
lbf.addPropertyEditorRegistrar(new PropertyEditorRegistrar() {
+ @Override
public void registerCustomEditors(PropertyEditorRegistry regis... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/FactoryBeanTests.java | @@ -77,14 +77,17 @@ public void testFactoryBeansWithIntermediateFactoryBeanAutowiringFailure() throw
public static class NullReturningFactoryBean implements FactoryBean<Object> {
+ @Override
public Object getObject() {
return null;
}
+ @Override
public Class<?> getObjectType() {
return null;
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/SharedBeanRegistryTests.java | @@ -43,6 +43,7 @@ public void testSingletons() {
assertSame(tb, beanRegistry.getSingleton("tb"));
TestBean tb2 = (TestBean) beanRegistry.getSingleton("tb2", new ObjectFactory<Object>() {
+ @Override
public Object getObject() throws BeansException {
return new TestBean();
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessorTests.java | @@ -989,6 +989,7 @@ public TestBean getTestBean2() {
public ExtendedResourceInjectionBean() {
}
+ @Override
@Autowired @Required
public void setTestBean2(TestBean testBean2) {
super.setTestBean2(testBean2);
@@ -1068,6 +1069,7 @@ public static class OptionalResourceInjectionBean extends ResourceInject... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/annotation/CustomAutowireConfigurerTests.java | @@ -69,6 +69,7 @@ public String getName() {
public static class CustomResolver implements AutowireCandidateResolver {
+ @Override
public boolean isAutowireCandidate(BeanDefinitionHolder bdHolder, DependencyDescriptor descriptor) {
if (!bdHolder.getBeanDefinition().isAutowireCandidate()) {
return fals... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/annotation/InjectAnnotationBeanPostProcessorTests.java | @@ -609,6 +609,7 @@ public TestBean getTestBean2() {
public ExtendedResourceInjectionBean() {
}
+ @Override
@Inject @Required
public void setTestBean2(TestBean testBean2) {
super.setTestBean2(testBean2);
@@ -662,6 +663,7 @@ public static class OptionalResourceInjectionBean extends ResourceInjectionBe... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/config/CustomEditorConfigurerTests.java | @@ -53,6 +53,7 @@ public void testCustomEditorConfigurerWithPropertyEditorRegistrar() throws Parse
final DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.GERMAN);
cec.setPropertyEditorRegistrars(new PropertyEditorRegistrar[] {
new PropertyEditorRegistrar() {
+ @Override
public vo... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/config/PropertyResourceConfigurerTests.java | @@ -812,6 +812,7 @@ public void testPreferencesPlaceholderConfigurerWithPathInPlaceholder() {
private static class ConvertingOverrideConfigurer extends PropertyOverrideConfigurer {
+ @Override
protected String convertPropertyValue(String originalValue) {
return "X" + originalValue;
}
@@ -826,10 +827,12... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/config/SimpleScopeTests.java | @@ -53,6 +53,7 @@ public void setUp() {
objects.add(new TestBean());
objects.add(new TestBean());
}
+ @Override
public Object get(String name, ObjectFactory<?> objectFactory) {
if (index >= objects.size()) {
index = 0; | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/config/TestTypes.java | @@ -30,21 +30,26 @@ final class TestTypes {}
*/
class NoOpScope implements Scope {
+ @Override
public Object get(String name, ObjectFactory<?> objectFactory) {
throw new UnsupportedOperationException();
}
+ @Override
public Object remove(String name) {
throw new UnsupportedOperationException();
}
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/parsing/CustomProblemReporterTests.java | @@ -71,10 +71,12 @@ private static class CollatingProblemReporter implements ProblemReporter {
private List<Problem> warnings = new ArrayList<Problem>();
+ @Override
public void fatal(Problem problem) {
throw new BeanDefinitionParsingException(problem);
}
+ @Override
public void error(Problem pr... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/support/BeanFactoryGenericsTests.java | @@ -391,6 +391,7 @@ public void testGenericMapWithKeyTypeConstructor() throws MalformedURLException
public void testGenericMapWithCollectionValueConstructor() throws MalformedURLException {
DefaultListableBeanFactory bf = new DefaultListableBeanFactory();
bf.addPropertyEditorRegistrar(new PropertyEditorRegistra... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/support/PropertiesBeanDefinitionReaderTests.java | @@ -30,6 +30,7 @@ public class PropertiesBeanDefinitionReaderTests extends TestCase {
private PropertiesBeanDefinitionReader reader;
+ @Override
protected void setUp() throws Exception {
this.beanFactory = new DefaultListableBeanFactory();
this.reader = new PropertiesBeanDefinitionReader(beanFactory); | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/support/Spr8954Tests.java | @@ -61,14 +61,17 @@ public void repro() {
static class FooFactoryBean implements FactoryBean<Foo>, AnInterface {
+ @Override
public Foo getObject() throws Exception {
return new Foo();
}
+ @Override
public Class<?> getObjectType() {
return Foo.class;
}
+ @Override
public boolean isSi... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/support/security/CallbacksSecurityTests.java | @@ -129,23 +129,28 @@ public NonPrivilegedSpringCallbacksBean(String expected) {
checkCurrentContext();
}
+ @Override
public void afterPropertiesSet() {
checkCurrentContext();
}
+ @Override
public void destroy() {
checkCurrentContext();
destroyed = true;
}
+ @Override
public v... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/support/security/support/CustomFactoryBean.java | @@ -24,15 +24,18 @@
*/
public class CustomFactoryBean implements FactoryBean<Object> {
+ @Override
public Object getObject() throws Exception {
return System.getProperties();
}
+ @Override
public Class getObjectType() {
System.setProperty("factory.object.type", "true");
return Properties.class;
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/support/security/support/DestroyBean.java | @@ -22,6 +22,7 @@
*/
public class DestroyBean implements DisposableBean {
+ @Override
public void destroy() throws Exception {
System.setProperty("security.destroy", "true");
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/support/security/support/InitBean.java | @@ -22,6 +22,7 @@
*/
public class InitBean implements InitializingBean {
+ @Override
public void afterPropertiesSet() throws Exception {
System.getProperties();
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/AbstractBeanFactoryTests.java | @@ -326,6 +326,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, "_");
@@ -350,6 +351,7 @@ class MustBeInitialized implements... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/BeanNameGenerationTests.java | @@ -30,6 +30,7 @@ public class BeanNameGenerationTests extends TestCase {
private DefaultListableBeanFactory beanFactory;
+ @Override
public void setUp() {
this.beanFactory = new DefaultListableBeanFactory();
XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(this.beanFactory); | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/CollectingReaderEventListener.java | @@ -45,6 +45,7 @@ public class CollectingReaderEventListener implements ReaderEventListener {
private final List imports = new LinkedList();
+ @Override
public void defaultsRegistered(DefaultsDefinition defaultsDefinition) {
this.defaults.add(defaultsDefinition);
}
@@ -53,6 +54,7 @@ public List getDefaults... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/CollectionMergingTests.java | @@ -40,6 +40,7 @@ public class CollectionMergingTests extends TestCase {
private DefaultListableBeanFactory beanFactory;
+ @Override
protected void setUp() throws Exception {
this.beanFactory = new DefaultListableBeanFactory();
BeanDefinitionReader reader = new XmlBeanDefinitionReader(this.beanFactory); | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/CountingFactory.java | @@ -51,14 +51,17 @@ public void setTestBean(TestBean tb) {
}
+ @Override
public Object getObject() {
return "myString";
}
+ @Override
public Class 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-beans/src/test/java/org/springframework/beans/factory/xml/DefaultLifecycleMethodsTests.java | @@ -27,6 +27,7 @@ public class DefaultLifecycleMethodsTests extends TestCase {
private XmlBeanFactory beanFactory;
+ @Override
protected void setUp() throws Exception {
this.beanFactory = new XmlBeanFactory(new ClassPathResource("defaultLifecycleMethods.xml", getClass()));
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/DelegatingEntityResolverTests.java | @@ -45,6 +45,7 @@ public void testCtorWhereEntityResolversAreBothNull() throws Exception {
private static final class NoOpEntityResolver implements EntityResolver {
+ @Override
public InputSource resolveEntity(String publicId, String systemId) {
return null;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/DependenciesBean.java | @@ -62,6 +62,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-beans/src/test/java/org/springframework/beans/factory/xml/EventPublicationTests.java | @@ -42,6 +42,7 @@ public class EventPublicationTests extends TestCase {
private final CollectingReaderEventListener eventListener = new CollectingReaderEventListener();
+ @Override
protected void setUp() throws Exception {
XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(this.beanFactory);
rea... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/GeneratedNameBean.java | @@ -27,6 +27,7 @@ public class GeneratedNameBean implements BeanNameAware {
private GeneratedNameBean child;
+ @Override
public void setBeanName(String beanName) {
this.beanName = beanName;
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/MetadataAttachmentTests.java | @@ -29,6 +29,7 @@ public class MetadataAttachmentTests extends TestCase {
private XmlBeanFactory beanFactory;
+ @Override
protected void setUp() throws Exception {
this.beanFactory = new XmlBeanFactory(new ClassPathResource("withMeta.xml", getClass()));
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/ProfileXmlBeanDefinitionTests.java | @@ -171,6 +171,7 @@ private BeanDefinitionRegistry beanFactoryFor(String xmlName, String... activePr
private static Matcher<BeanDefinitionRegistry> containsBeanDefinition(final String beanName) {
return new TypeSafeMatcher<BeanDefinitionRegistry>() {
+ @Override
public void describeTo(Description desc) {
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/ProtectedLifecycleBean.java | @@ -57,6 +57,7 @@ public boolean isInitMethodDeclared() {
return initMethodDeclared;
}
+ @Override
public void setBeanName(String name) {
this.beanName = name;
}
@@ -65,6 +66,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-beans/src/test/java/org/springframework/beans/factory/xml/UtilNamespaceHandlerTests.java | @@ -46,6 +46,7 @@ public class UtilNamespaceHandlerTests extends TestCase {
private CollectingReaderEventListener listener = new CollectingReaderEventListener();
+ @Override
public void setUp() {
this.beanFactory = new DefaultListableBeanFactory();
XmlBeanDefinitionReader reader = new XmlBeanDefinitionRea... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/factory/xml/XmlListableBeanFactoryTests.java | @@ -46,6 +46,7 @@ public class XmlListableBeanFactoryTests extends AbstractListableBeanFactoryTest
private XmlBeanFactory factory;
+ @Override
protected void setUp() {
parent = new DefaultListableBeanFactory();
Map m = new HashMap();
@@ -59,6 +60,7 @@ protected void setUp() {
this.factory = new XmlBe... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/propertyeditors/BeanInfoTests.java | @@ -70,6 +70,7 @@ public void setValue(Integer value) {
public static class ValueBeanBeanInfo extends SimpleBeanInfo {
+ @Override
public PropertyDescriptor[] getPropertyDescriptors() {
try {
PropertyDescriptor pd = new PropertyDescriptor("value", ValueBean.class);
@@ -96,6 +97,7 @@ public MyNumberEd... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/propertyeditors/CustomEditorTests.java | @@ -113,6 +113,7 @@ public void testCustomEditorForSingleProperty() {
TestBean tb = new TestBean();
BeanWrapper bw = new BeanWrapperImpl(tb);
bw.registerCustomEditor(String.class, "name", new PropertyEditorSupport() {
+ @Override
public void setAsText(String text) throws IllegalArgumentException {
s... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/org/springframework/beans/support/PropertyComparatorTests.java | @@ -104,6 +104,7 @@ private static class Dog implements Comparable<Object> {
private String lastName;
+ @Override
public int compareTo(Object o) {
return nickName.compareTo(((Dog)o).nickName);
} | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/test/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;
}
@@ -79,10 +81,12 @@... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/test/beans/DummyFactory.java | @@ -81,6 +81,7 @@ public DummyFactory() {
* Return if the bean managed by this factory is a singleton.
* @see FactoryBean#isSingleton()
*/
+ @Override
public boolean isSingleton() {
return this.singleton;
}
@@ -92,6 +93,7 @@ public void setSingleton(boolean singleton) {
this.singleton = singleton;
... | true |
Other | spring-projects | spring-framework | 4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json | Add @Override annotations to test sources
Issue: SPR-10129 | spring-beans/src/test/java/test/beans/LifecycleBean.java | @@ -59,6 +59,7 @@ public boolean isInitMethodDeclared() {
return initMethodDeclared;
}
+ @Override
public void setBeanName(String name) {
this.beanName = name;
}
@@ -67,6 +68,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-beans/src/test/java/test/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-beans/src/test/java/test/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-support/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-support/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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.