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/src/test/java/org/springframework/context/support/ResourceConverter.java
@@ -25,6 +25,7 @@ */ public class ResourceConverter implements Converter<String, Resource> { + @Override public Resource convert(String source) { return new FileSystemResource(source + ".xml"); }
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/Service.java
@@ -40,10 +40,12 @@ public class Service implements ApplicationContextAware, MessageSourceAware, Dis private boolean properlyDestroyed = false; + @Override public void setApplicationContext(ApplicationContext applicationContext) { this.applicationContext = applicationContext; } + @Override public void ...
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/SimpleThreadScopeTest.java
@@ -49,11 +49,13 @@ public void getFromScope() throws Exception { public void getMultipleInstances() throws Exception { final TestBean[] beans = new TestBean[2]; Thread thread1 = new Thread(new Runnable() { + @Override public void run() { beans[0] = applicationContext.getBean("threadScopedObject", Te...
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/StaticApplicationContextMulticasterTests.java
@@ -43,6 +43,7 @@ public class StaticApplicationContextMulticasterTests extends AbstractApplicatio protected StaticApplicationContext sac; /** Run for each test */ + @Override protected ConfigurableApplicationContext createContext() throws Exception { StaticApplicationContext parent = new StaticApplicationCo...
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/StaticApplicationContextTests.java
@@ -39,6 +39,7 @@ public class StaticApplicationContextTests extends AbstractApplicationContextTes protected StaticApplicationContext sac; /** Run for each test */ + @Override protected ConfigurableApplicationContext createContext() throws Exception { StaticApplicationContext parent = new StaticApplicationCo...
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/StaticMessageSourceTests.java
@@ -49,11 +49,13 @@ public class StaticMessageSourceTests extends AbstractApplicationContextTests { protected StaticApplicationContext sac; /** Overridden */ + @Override public void testCount() { // These are only checked for current Ctx (not parent ctx) assertCount(15); } + @Override public void te...
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/TestProxyFactoryBean.java
@@ -28,6 +28,7 @@ protected Object createMainInterceptor() { return new NoOpAdvice(); } + @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/core/task/NoOpRunnable.java
@@ -23,6 +23,7 @@ */ public class NoOpRunnable implements Runnable { + @Override public void run() { // explicit no-op System.out.println("Running");
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/ejb/access/LocalSlsbInvokerInterceptorTests.java
@@ -57,6 +57,7 @@ public void testLookupFailure() throws Exception { final NamingException nex = new NamingException(); final String jndiName= "foobar"; JndiTemplate jt = new JndiTemplate() { + @Override public Object lookup(String name) throws NamingException { assertTrue(jndiName.equals(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/ejb/access/LocalStatelessSessionProxyFactoryBeanTests.java
@@ -52,6 +52,7 @@ public void testInvokesMethod() throws Exception { replay(home); JndiTemplate jt = new JndiTemplate() { + @Override public Object lookup(String name) throws NamingException { // parameterize assertTrue(name.equals("java:comp/env/" + jndiName)); @@ -85,6 +86,7 @@ public void tes...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/ejb/access/SimpleRemoteSlsbInvokerInterceptorTests.java
@@ -63,6 +63,7 @@ private SimpleRemoteSlsbInvokerInterceptor configuredInterceptor( SimpleRemoteSlsbInvokerInterceptor si = createInterceptor(); si.setJndiTemplate(new JndiTemplate() { + @Override protected Context createInitialContext() { return mockCtx; } @@ -121,6 +122,7 @@ public void testLoo...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/ejb/access/SimpleRemoteStatelessSessionProxyFactoryBeanTests.java
@@ -38,10 +38,12 @@ */ public class SimpleRemoteStatelessSessionProxyFactoryBeanTests extends SimpleRemoteSlsbInvokerInterceptorTests { + @Override protected SimpleRemoteSlsbInvokerInterceptor createInterceptor() { return new SimpleRemoteStatelessSessionProxyFactoryBean(); } + @Override protected 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/format/number/NumberFormattingTests.java
@@ -48,6 +48,7 @@ public class NumberFormattingTests { public void setUp() { DefaultConversionService.addDefaultConverters(conversionService); conversionService.setEmbeddedValueResolver(new StringValueResolver() { + @Override public String resolveStringValue(String strVal) { if ("${pattern}".equals(s...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/format/support/FormattingConversionServiceFactoryBeanTests.java
@@ -149,10 +149,12 @@ public void setSpecialInt(int field) { private static class TestBeanFormatter implements Formatter<TestBean> { + @Override public String print(TestBean object, Locale locale) { return String.valueOf(object.getSpecialInt()); } + @Override public TestBean parse(String text, Lo...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/format/support/FormattingConversionServiceTests.java
@@ -86,6 +86,7 @@ public void testFormatFieldForTypeWithFormatter() throws ParseException { @Test public void testFormatFieldForTypeWithPrinterParserWithCoercion() throws ParseException { formattingService.addConverter(new Converter<DateTime, LocalDate>() { + @Override public LocalDate convert(DateTime sou...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/instrument/classloading/ReflectiveLoadTimeWeaverTests.java
@@ -46,6 +46,7 @@ public void testCtorWithClassLoaderThatDoesNotExposeAGetThrowawayClassLoaderMeth JustAddTransformerClassLoader classLoader = new JustAddTransformerClassLoader(); ReflectiveLoadTimeWeaver weaver = new ReflectiveLoadTimeWeaver(classLoader); weaver.addTransformer(new ClassFileTransformer() { + ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/AbstractJmxTests.java
@@ -31,10 +31,12 @@ public abstract class AbstractJmxTests extends AbstractMBeanServerTests { private ConfigurableApplicationContext ctx; + @Override protected final void onSetUp() throws Exception { ctx = loadContext(getApplicationContextPath()); } + @Override protected final void onTearDown() throws ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/AbstractMBeanServerTests.java
@@ -45,6 +45,7 @@ public abstract class AbstractMBeanServerTests extends TestCase { protected MBeanServer server; + @Override public final void setUp() throws Exception { this.server = MBeanServerFactory.createMBeanServer(); try { @@ -63,6 +64,7 @@ protected ConfigurableApplicationContext loadContext(Stri...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/JmxTestBean.java
@@ -43,17 +43,20 @@ public class JmxTestBean implements IJmxTestBean { * @@org.springframework.jmx.export.metadata.ManagedAttribute * (description="The Age Attribute", currencyTimeLimit=15) */ + @Override public int getAge() { return age; } + @Override public void setAge(int age) { this.age = 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/jmx/access/MBeanClientInterceptorTests.java
@@ -50,6 +50,7 @@ public class MBeanClientInterceptorTests extends AbstractMBeanServerTests { protected boolean runTests = true; + @Override public void onSetUp() throws Exception { target = new JmxTestBean(); target.setAge(100); @@ -277,17 +278,20 @@ public void testMXBeanAttributeListAccess() throws Exc...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/access/RemoteMBeanClientInterceptorTestsIgnore.java
@@ -46,6 +46,7 @@ public class RemoteMBeanClientInterceptorTestsIgnore extends MBeanClientIntercep private JMXConnector connector; + @Override public void onSetUp() throws Exception { super.onSetUp(); this.connectorServer = JMXConnectorServerFactory.newJMXConnectorServer(getServiceUrl(), null, getServer()...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/CustomEditorConfigurerTests.java
@@ -31,6 +31,7 @@ public class CustomEditorConfigurerTests extends AbstractJmxTests { private final SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd"); + @Override protected String getApplicationContextPath() { return "org/springframework/jmx/export/customConfigurer.xml"; }
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/MBeanExporterOperationsTests.java
@@ -67,6 +67,7 @@ public void testRegisterManagedResourceWithGeneratedObjectName() throws Exceptio MBeanExporter exporter = new MBeanExporter(); exporter.setServer(getServer()); exporter.setNamingStrategy(new ObjectNamingStrategy() { + @Override public ObjectName getObjectName(Object managedBean, 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/jmx/export/MBeanExporterTests.java
@@ -98,6 +98,7 @@ public void testRegisterNullNotificationListenerType() throws Exception { public void testRegisterNotificationListenerForNonExistentMBean() throws Exception { Map listeners = new HashMap(); NotificationListener dummyListener = new NotificationListener() { + @Override public void handleNo...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/NotificationListenerTests.java
@@ -158,6 +158,7 @@ public void testRegisterNotificationListenerWithFilter() throws Exception { NotificationListenerBean listenerBean = new NotificationListenerBean(); listenerBean.setNotificationListener(listener); listenerBean.setNotificationFilter(new NotificationFilter() { + @Override public boolean ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/NotificationPublisherTests.java
@@ -119,6 +119,7 @@ private static class CountingNotificationListener implements NotificationListene private Notification lastNotification; + @Override public void handleNotification(Notification notification, Object handback) { this.lastNotification = notification; this.count++; @@ -139,6 +140,7 @@ ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/PropertyPlaceholderConfigurerTests.java
@@ -26,6 +26,7 @@ */ public class PropertyPlaceholderConfigurerTests extends AbstractJmxTests { + @Override protected String getApplicationContextPath() { return "org/springframework/jmx/export/propertyPlaceholderConfigurer.xml"; }
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/TestDynamicMBean.java
@@ -37,28 +37,34 @@ public void setFailOnInit(boolean failOnInit) { } } + @Override public Object getAttribute(String attribute) { if ("Name".equals(attribute)) { return "Rob Harrop"; } return null; } + @Override public void setAttribute(Attribute attribute) { } + @Override public Attr...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/annotation/AnnotationMetadataAssemblerTests.java
@@ -48,18 +48,22 @@ public void testOperationOnGetter() throws Exception { assertNotNull(op); } + @Override protected JmxAttributeSource getAttributeSource() { return new AnnotationJmxAttributeSource(); } + @Override protected String getObjectName() { return OBJECT_NAME; } + @Override protect...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/annotation/AnnotationTestBean.java
@@ -40,20 +40,24 @@ public class AnnotationTestBean implements IJmxTestBean { private boolean isSuperman; + @Override @ManagedAttribute(description = "The Age Attribute", currencyTimeLimit = 15) public int getAge() { return age; } + @Override public void setAge(int age) { this.age = age; } + @...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/annotation/AnnotationTestBeanFactory.java
@@ -30,14 +30,17 @@ public AnnotationTestBeanFactory() { this.instance.setName("FACTORY"); } + @Override public FactoryCreatedAnnotationTestBean getObject() throws Exception { return this.instance; } + @Override public Class<? extends IJmxTestBean> getObjectType() { return FactoryCreatedAnnotationT...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/annotation/AnnotationTestSubBean.java
@@ -38,17 +38,21 @@ public int getAge() { return super.getAge(); } + @Override public String getColour() { return this.colour; } + @Override public void setColour(String colour) { this.colour = colour; } + @Override public void fromInterface() { } + @Override public int getExpensiveToCa...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/annotation/JmxUtilsAnnotationTests.java
@@ -54,6 +54,7 @@ public static interface FooNotMXBean { public static class FooNotX implements FooNotMXBean { + @Override public String getName() { return "Rob Harrop"; } @@ -69,6 +70,7 @@ public static interface FooIfc { public static class FooX implements FooIfc { + @Override public 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/jmx/export/assembler/AbstractMetadataAssemblerAutodetectTests.java
@@ -23,6 +23,7 @@ */ public abstract class AbstractMetadataAssemblerAutodetectTests extends AbstractAutodetectTests { + @Override protected AutodetectCapableMBeanInfoAssembler getAssembler() { MetadataMBeanInfoAssembler assembler = new MetadataMBeanInfoAssembler(); assembler.setAttributeSource(getAttribute...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/assembler/AbstractMetadataAssemblerTests.java
@@ -204,12 +204,15 @@ public void testMetricDescriptorDefaults() throws Exception { assertNull("Metric Category should not be populated", desc.getFieldValue("metricCategory")); } + @Override protected abstract String getObjectName(); + @Override protected int getExpectedAttributeCount() { return 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/jmx/export/assembler/InterfaceBasedMBeanInfoAssemblerCustomTests.java
@@ -26,18 +26,22 @@ public class InterfaceBasedMBeanInfoAssemblerCustomTests extends AbstractJmxAsse protected static final String OBJECT_NAME = "bean:name=testBean5"; + @Override protected String getObjectName() { return OBJECT_NAME; } + @Override protected int getExpectedOperationCount() { return ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssemblerMappedTests.java
@@ -75,24 +75,29 @@ public void testNickNameIsExposed() throws Exception { assertNickName(attr); } + @Override protected String getObjectName() { return OBJECT_NAME; } + @Override protected int getExpectedOperationCount() { return 7; } + @Override protected int getExpectedAttributeCount() { ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssemblerTests.java
@@ -21,22 +21,27 @@ */ public class InterfaceBasedMBeanInfoAssemblerTests extends AbstractJmxAssemblerTests { + @Override protected String getObjectName() { return "bean:name=testBean4"; } + @Override protected int getExpectedOperationCount() { return 7; } + @Override protected int getExpectedA...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/assembler/MethodExclusionMBeanInfoAssemblerComboTests.java
@@ -45,22 +45,27 @@ public void testNickNameIsExposed() throws Exception { assertTrue("Nick Name should be readable", attr.isReadable()); } + @Override protected String getObjectName() { return OBJECT_NAME; } + @Override protected int getExpectedOperationCount() { return 7; } + @Override prot...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/assembler/MethodExclusionMBeanInfoAssemblerMappedTests.java
@@ -44,22 +44,27 @@ public void testNickNameIsExposed() throws Exception { assertTrue("Nick Name should be readable", attr.isReadable()); } + @Override protected String getObjectName() { return OBJECT_NAME; } + @Override protected int getExpectedOperationCount() { return 7; } + @Override prot...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/assembler/MethodExclusionMBeanInfoAssemblerNotMappedTests.java
@@ -45,22 +45,27 @@ public void testNickNameIsExposed() throws Exception { assertTrue("Nick Name should be readable", attr.isReadable()); } + @Override protected String getObjectName() { return OBJECT_NAME; } + @Override protected int getExpectedOperationCount() { return 11; } + @Override pro...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/assembler/MethodExclusionMBeanInfoAssemblerTests.java
@@ -33,22 +33,27 @@ public class MethodExclusionMBeanInfoAssemblerTests extends AbstractJmxAssembler private static final String OBJECT_NAME = "bean:name=testBean5"; + @Override protected String getObjectName() { return OBJECT_NAME; } + @Override protected int getExpectedOperationCount() { return 9;...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/assembler/MethodNameBasedMBeanInfoAssemblerMappedTests.java
@@ -54,22 +54,27 @@ public void testNickNameIsExposed() throws Exception { assertNickName(attr); } + @Override protected String getObjectName() { return OBJECT_NAME; } + @Override protected int getExpectedOperationCount() { return 7; } + @Override protected int getExpectedAttributeCount() { ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/assembler/MethodNameBasedMBeanInfoAssemblerTests.java
@@ -26,18 +26,22 @@ public class MethodNameBasedMBeanInfoAssemblerTests extends AbstractJmxAssembler protected static final String OBJECT_NAME = "bean:name=testBean5"; + @Override protected String getObjectName() { return OBJECT_NAME; } + @Override protected int getExpectedOperationCount() { return ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/assembler/ReflectiveAssemblerTests.java
@@ -26,22 +26,27 @@ public class ReflectiveAssemblerTests extends AbstractJmxAssemblerTests { protected static final String OBJECT_NAME = "bean:name=testBean1"; + @Override protected String getObjectName() { return OBJECT_NAME; } + @Override protected int getExpectedOperationCount() { return 11; }...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/naming/KeyNamingStrategyTests.java
@@ -23,18 +23,22 @@ public class KeyNamingStrategyTests extends AbstractNamingStrategyTests { private static final String OBJECT_NAME = "spring:name=test"; + @Override protected ObjectNamingStrategy getStrategy() throws Exception { return new KeyNamingStrategy(); } + @Override protected Object getManag...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/naming/PropertiesFileNamingStrategyTests.java
@@ -23,6 +23,7 @@ */ public class PropertiesFileNamingStrategyTests extends PropertiesNamingStrategyTests { + @Override protected ObjectNamingStrategy getStrategy() throws Exception { KeyNamingStrategy strat = new KeyNamingStrategy(); strat.setMappingLocation(new ClassPathResource("jmx-names.properties", g...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/naming/PropertiesNamingStrategyTests.java
@@ -26,6 +26,7 @@ public class PropertiesNamingStrategyTests extends AbstractNamingStrategyTests { private static final String OBJECT_NAME = "bean:name=namingTest"; + @Override protected ObjectNamingStrategy getStrategy() throws Exception { KeyNamingStrategy strat = new KeyNamingStrategy(); Properties map...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/export/notification/ModelMBeanNotificationPublisherTests.java
@@ -113,10 +113,12 @@ public Notification getActualNotification() { return this.actualNotification; } + @Override public void sendNotification(Notification notification) throws RuntimeOperationsException { this.actualNotification = notification; } + @Override public void sendAttributeChangeNot...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jmx/support/JmxUtilsTests.java
@@ -151,28 +151,35 @@ public StandardMBeanImpl() throws NotCompliantMBeanException { super(IJmxTestBean.class); } + @Override public int add(int x, int y) { return 0; } + @Override public long myOperation() { return 0; } + @Override public int getAge() { return 0; } + @O...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jndi/JndiObjectFactoryBeanTests.java
@@ -233,6 +233,7 @@ public void testLookupWithProxyInterfaceAndLazyLookup() throws Exception { JndiObjectFactoryBean jof = new JndiObjectFactoryBean(); final TestBean tb = new TestBean(); jof.setJndiTemplate(new JndiTemplate() { + @Override public Object lookup(String name) { if ("foo".equals(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/jndi/JndiTemplateTests.java
@@ -42,6 +42,7 @@ public void testLookupSucceeds() throws Exception { replay(context); JndiTemplate jt = new JndiTemplate() { + @Override protected Context createInitialContext() { return context; } @@ -62,6 +63,7 @@ public void testLookupFails() throws Exception { replay(context); JndiTe...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/jndi/SimpleNamingContextTests.java
@@ -219,38 +219,47 @@ public void testCreateInitialContext() throws Exception { class StubDataSource implements DataSource { + @Override public Connection getConnection() throws SQLException { return null; } + @Override public Connection getConnection(String username, String password) throws SQLExceptio...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/mock/jndi/ExpectedLookupTemplate.java
@@ -70,6 +70,7 @@ public void addObject(String name, Object object) { * return the object provided in the constructor. If the name is * unexpected, a respective NamingException gets thrown. */ + @Override public Object lookup(String name) throws NamingException { Object object = this.jndiObjects.get(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/mock/jndi/SimpleNamingContext.java
@@ -91,13 +91,15 @@ public SimpleNamingContext(String root, Hashtable<String, Object> boundObjects, // Actual implementations of Context methods follow + @Override public NamingEnumeration<NameClassPair> list(String root) throws NamingException { if (logger.isDebugEnabled()) { logger.debug("Listing 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/mock/jndi/SimpleNamingContextBuilder.java
@@ -192,6 +192,7 @@ public void bind(String name, Object obj) { * creating a new SimpleNamingContext instance. * @see SimpleNamingContext */ + @Override public InitialContextFactory createInitialContextFactory(Hashtable<?,?> environment) { if (activated == null && environment != null) { Object icf = e...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/remoting/rmi/RmiSupportTests.java
@@ -322,18 +322,23 @@ public void testRemoteInvocation() throws NoSuchMethodException { final Method setNameMethod = rb.getClass().getDeclaredMethod("setName", new Class<?>[] {String.class}); MethodInvocation mi = new MethodInvocation() { + @Override public Method getMethod() { return setNameMethod; ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncAnnotationBeanPostProcessorTests.java
@@ -116,16 +116,19 @@ public static class TestBean implements ITestBean { private final CountDownLatch latch = new CountDownLatch(1); + @Override public Thread getThread() { return this.thread; } + @Override @Async public void test() { this.thread = Thread.currentThread(); this.latch....
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncExecutionTests.java
@@ -248,10 +248,12 @@ public interface AsyncInterface { public static class AsyncInterfaceBean implements AsyncInterface { + @Override public void doSomething(int i) { assertTrue(!Thread.currentThread().getName().equals(originalThreadName)); } + @Override public Future<String> returnSomething(int...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scheduling/annotation/EnableAsyncTests.java
@@ -247,6 +247,7 @@ public AsyncBean asyncBean() { return new AsyncBean(); } + @Override public Executor getAsyncExecutor() { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setThreadNamePrefix("Custom-");
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scheduling/annotation/EnableSchedulingTests.java
@@ -216,6 +216,7 @@ public Object getScheduler() { return null; } + @Override public void configureTasks(ScheduledTaskRegistrar taskRegistrar) { taskRegistrar.setScheduler(taskScheduler1()); } @@ -318,6 +319,7 @@ public ThreadAwareWorker worker() { return new ThreadAwareWorker(); } + @Over...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scheduling/concurrent/ScheduledExecutorFactoryBeanTests.java
@@ -65,6 +65,7 @@ public void testShutdownNowIsPropagatedToTheExecutorOnDestroy() throws Exception mockScheduledExecutorService.replay(); ScheduledExecutorFactoryBean factory = new ScheduledExecutorFactoryBean() { + @Override protected ScheduledExecutorService createExecutor(int poolSize, ThreadFactory th...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scheduling/concurrent/ThreadPoolTaskSchedulerTests.java
@@ -239,6 +239,7 @@ private static class TestTask implements Runnable { this.latch = new CountDownLatch(expectedRunCount); } + @Override public void run() { lastThread = Thread.currentThread(); if (actualRunCount.incrementAndGet() > expectedRunCount) { @@ -259,6 +260,7 @@ private static class TestC...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scheduling/config/ExecutorBeanDefinitionParserTests.java
@@ -56,6 +56,7 @@ public void defaultExecutor() throws Exception { assertEquals(60, getKeepAliveSeconds(executor)); assertEquals(false, getAllowCoreThreadTimeOut(executor)); FutureTask<String> task = new FutureTask<String>(new Callable<String>() { + @Override public String call() throws Exception { ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scheduling/config/ScheduledTasksBeanDefinitionParserTests.java
@@ -123,6 +123,7 @@ public void test() { static class TestTrigger implements Trigger { + @Override public Date nextExecutionTime(TriggerContext triggerContext) { return 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/scheduling/support/PeriodicTriggerTests.java
@@ -254,14 +254,17 @@ private static class TestTriggerContext implements TriggerContext { this.completion = completion; } + @Override public Date lastActualExecutionTime() { return this.actual; } + @Override public Date lastCompletionTime() { return this.completion; } + @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/scheduling/timer/TimerSupportTests.java
@@ -50,27 +50,32 @@ public void testTimerFactoryBean() throws Exception { final List<Boolean> success = new ArrayList<Boolean>(3); final Timer timer = new Timer(true) { + @Override public void schedule(TimerTask task, long delay, long period) { if (task == timerTask0 && delay == 0 && period == 10) { ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scheduling/timer/TimerTaskExecutorTests.java
@@ -96,6 +96,7 @@ public void testThatTheDestroyCallbackCancelsTheTimerIfNoTimerIsExplicitlySuppli TimerTaskExecutor executor = new TimerTaskExecutor() { + @Override protected Timer createTimer() { return timer; } @@ -129,6 +130,7 @@ public boolean isCreateTimerWasCalled() { return this.create...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scripting/config/OtherTestBean.java
@@ -21,14 +21,17 @@ */ public class OtherTestBean implements ITestBean { + @Override public ITestBean getOtherBean() { return null; } + @Override public boolean isInitialized() { return false; } + @Override public boolean isDestroyed() { return false; }
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scripting/groovy/ConcreteMessenger.java
@@ -26,10 +26,12 @@ public class ConcreteMessenger implements ConfigurableMessenger { private String message; + @Override public String getMessage() { return message; } + @Override public void setMessage(String message) { this.message = message; }
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scripting/groovy/GroovyScriptFactoryTests.java
@@ -478,8 +478,10 @@ public void testRefreshableFactoryBean() { public static class TestCustomizer implements GroovyObjectCustomizer { + @Override public void customize(GroovyObject goo) { DelegatingMetaClass dmc = new DelegatingMetaClass(goo.getMetaClass()) { + @Override public Object invokeMetho...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scripting/groovy/LogUserAdvice.java
@@ -11,6 +11,7 @@ public class LogUserAdvice implements MethodBeforeAdvice, ThrowsAdvice { private int countThrows = 0; + @Override public void before(Method method, Object[] objects, Object o) throws Throwable { countBefore++; System.out.println("Method:"+method.getName());
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scripting/groovy/TestServiceImpl.java
@@ -2,6 +2,7 @@ @Log public class TestServiceImpl implements TestService{ + @Override public String sayHello() { throw new TestException("TestServiceImpl"); }
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scripting/jruby/JRubyScriptFactoryTests.java
@@ -278,6 +278,7 @@ private static final class CountingPrintable implements Printable { public int count; + @Override public String getContent() { this.count++; return "Hello World!";
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/scripting/support/StubMessenger.java
@@ -25,10 +25,12 @@ public final class StubMessenger implements ConfigurableMessenger { private String message = "I used to be smart... now I'm just stupid."; + @Override public void setMessage(String message) { this.message = message; } + @Override public String getMessage() { return message; }
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/ui/ModelMapTests.java
@@ -278,6 +278,7 @@ public void testRawJdkProxy() throws Exception { getClass().getClassLoader(), new Class<?>[] {Map.class}, new InvocationHandler() { + @Override public Object invoke(Object proxy, Method method, Object[] args) { return "proxy"; }
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/validation/DataBinderFieldAccessTests.java
@@ -115,9 +115,11 @@ public void testBindingWithErrorsAndCustomEditors() throws Exception { DataBinder binder = new DataBinder(rod, "person"); binder.initDirectFieldAccess(); binder.registerCustomEditor(TestBean.class, "spouse", new PropertyEditorSupport() { + @Override public void setAsText(String 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/validation/DataBinderTests.java
@@ -254,17 +254,21 @@ public void testBindingWithErrorsAndCustomEditors() throws Exception { TestBean rod = new TestBean(); DataBinder binder = new DataBinder(rod, "person"); binder.registerCustomEditor(String.class, "touchy", new PropertyEditorSupport() { + @Override public void setAsText(String text) 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/validation/DefaultMessageCodesResolverTests.java
@@ -146,6 +146,7 @@ public void shouldSupportFieldPostfixFormat() throws Exception { @Test public void shouldSupportCustomFormat() throws Exception { resolver.setMessageCodeFormatter(new MessageCodeFormatter() { + @Override public String format(String errorCode, String objectName, String field) { retu...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/validation/ValidationUtilsTests.java
@@ -161,10 +161,12 @@ public void testValidationUtilsEmptyOrWhitespaceVariants() { private static class EmptyValidator implements Validator { + @Override public boolean supports(Class<?> clazz) { return TestBean.class.isAssignableFrom(clazz); } + @Override public void validate(Object obj, Errors ...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/org/springframework/validation/beanvalidation/MethodValidationTests.java
@@ -84,6 +84,7 @@ private void doTestProxyValidation(MyValidInterface proxy) { @MyStereotype public static class MyValidBean implements MyValidInterface { + @Override public Object myValidMethod(String arg1, int arg2) { return (arg2 == 0 ? null : "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/validation/beanvalidation/ValidatorFactoryTests.java
@@ -273,9 +273,11 @@ public void setStreet(String street) { public static class NameAddressValidator implements ConstraintValidator<NameAddressValid, ValidPerson> { + @Override public void initialize(NameAddressValid constraintAnnotation) { } + @Override public boolean isValid(ValidPerson value, Cons...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/test/advice/CountingAfterReturningAdvice.java
@@ -28,6 +28,7 @@ @SuppressWarnings("serial") public class CountingAfterReturningAdvice extends MethodCounter implements AfterReturningAdvice { + @Override public void afterReturning(Object o, 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-context/src/test/java/test/advice/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-context/src/test/java/test/aspect/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-context/src/test/java/test/beans/CustomScope.java
@@ -33,6 +33,7 @@ public class CustomScope implements Scope { private Map<String, Object> beans = new HashMap<String, Object>(); + @Override public Object get(String name, ObjectFactory<?> objectFactory) { if (createNewScope) { beans.clear(); @@ -50,18 +51,22 @@ public Object get(String name, ObjectFacto...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/test/beans/NestedTestBean.java
@@ -36,6 +36,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/test/beans/TestBean.java
@@ -120,6 +120,7 @@ public TestBean(ITestBean spouse, Properties someProperties) { this.someProperties = someProperties; } + @Override public void setBeanName(String beanName) { this.beanName = beanName; } @@ -128,6 +129,7 @@ public String getBeanName() { return beanName; } + @Override public voi...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/test/interceptor/NopInterceptor.java
@@ -32,6 +32,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-context/src/test/java/test/interceptor/SerializableNopInterceptor.java
@@ -35,10 +35,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-context/src/test/java/test/interceptor/TimestampIntroductionInterceptor.java
@@ -37,6 +37,7 @@ public void setTime(long ts) { this.ts = ts; } + @Override public long getTimeStamp() { return ts; }
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-context/src/test/java/test/mixin/DefaultLockable.java
@@ -26,14 +26,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-context/src/test/java/test/mixin/LockMixin.java
@@ -34,17 +34,20 @@ public class LockMixin extends DelegatingIntroductionInterceptor implements Lock /** This field demonstrates additional state in the mixin */ private boolean locked; + @Override public void lock() { this.locked = true; } + @Override public void unlock() { this.locked = false; }...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-core/src/test/java/org/springframework/beans/DerivedTestBean.java
@@ -48,12 +48,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; } @@ -72,10 +74,12 @@...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-core/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-core/src/test/java/org/springframework/beans/TestBean.java
@@ -148,10 +148,12 @@ public boolean isPostProcessed() { return postProcessed; } + @Override public String getName() { return name; } + @Override public void setName(String name) { this.name = name; } @@ -167,10 +169,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-core/src/test/java/org/springframework/core/AttributeAccessorSupportTests.java
@@ -32,6 +32,7 @@ public class AttributeAccessorSupportTests extends TestCase { private AttributeAccessor attributeAccessor; + @Override @SuppressWarnings("serial") protected void setUp() throws Exception { this.attributeAccessor = new AttributeAccessorSupport() { @@ -64,6 +65,7 @@ public void testAttribut...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-core/src/test/java/org/springframework/core/BridgeMethodResolverTests.java
@@ -356,9 +356,11 @@ public static class MyFoo implements Foo<String> { public void someMethod(Integer theArg, Object otherArg) { } + @Override public void someMethod(String theArg, Object otherArg) { } + @Override public void someVarargMethod(String theArg, Object... otherArgs) { } } @@ -383,...
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-core/src/test/java/org/springframework/core/DefaultControlFlowTests.java
@@ -30,6 +30,7 @@ public class DefaultControlFlowTests extends AbstractControlFlowTests { public void testThisClassPlease() { } + @Override protected ControlFlow createControlFlow() { return ControlFlowFactory.createControlFlow(); }
true
Other
spring-projects
spring-framework
4c8cd7b0bd45bbe37ec9cc588b0f29608831b05f.json
Add @Override annotations to test sources Issue: SPR-10129
spring-core/src/test/java/org/springframework/core/GenericCollectionTypeResolverTests.java
@@ -36,6 +36,7 @@ */ public class GenericCollectionTypeResolverTests extends AbstractGenericsTests { + @Override protected void setUp() throws Exception { this.targetClass = Foo.class; this.methods = new String[] {"a", "b", "b2", "b3", "c", "d", "d2", "d3", "e", "e2", "e3"}; @@ -44,6 +45,7 @@ protected voi...
true