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-core/src/test/java/org/springframework/core/Jdk14ControlFlowTests.java | @@ -30,6 +30,7 @@ public class Jdk14ControlFlowTests 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/OrderComparatorTests.java | @@ -30,6 +30,7 @@ public final class OrderComparatorTests extends TestCase {
private Comparator comparator;
+ @Override
protected void setUp() throws Exception {
this.comparator = new OrderComparator();
}
@@ -64,6 +65,7 @@ public StubOrdered(int order) {
this.order = order;
}
+ @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-core/src/test/java/org/springframework/core/PrioritizedParameterNameDiscovererTests.java | @@ -31,18 +31,22 @@ public class PrioritizedParameterNameDiscovererTests extends TestCase {
private static final String[] SOMETHING_ELSE = new String[] { "something", "else" };
ParameterNameDiscoverer returnsFooBar = new ParameterNameDiscoverer() {
+ @Override
public String[] getParameterNames(Method m) {
return FOO_BAR;
}
+ @Override
public String[] getParameterNames(Constructor ctor) {
return FOO_BAR;
}
};
ParameterNameDiscoverer returnsSomethingElse = new ParameterNameDiscoverer() {
+ @Override
public String[] getParameterNames(Method m) {
return SOMETHING_ELSE;
}
+ @Override
public String[] getParameterNames(Constructor ctor) {
return SOMETHING_ELSE;
} | 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/annotation/AnnotationUtilsTests.java | @@ -258,6 +258,7 @@ public void notAnnotated() {
}
+ @Override
public void fromInterfaceImplementedByRoot() {
}
@@ -290,6 +291,7 @@ public void overrideWithoutNewAnnotation() {
public static class SimpleFoo extends Foo<String> {
+ @Override
@Transactional
public void something(final String arg) {
@@ -339,12 +341,14 @@ public static interface InterfaceWithAnnotatedMethod {
public static class ImplementsInterfaceWithAnnotatedMethod implements InterfaceWithAnnotatedMethod {
+ @Override
public void foo() {
}
}
public static class SubOfImplementsInterfaceWithAnnotatedMethod extends ImplementsInterfaceWithAnnotatedMethod {
+ @Override
public void foo() {
}
}
@@ -354,6 +358,7 @@ public abstract static class AbstractDoesNotImplementInterfaceWithAnnotatedMetho
public static class SubOfAbstractImplementsInterfaceWithAnnotatedMethod extends AbstractDoesNotImplementInterfaceWithAnnotatedMethod {
+ @Override
public void foo() {
}
} | 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/convert/TypeDescriptorTests.java | @@ -255,34 +255,42 @@ public void propertyGenericTypeList() throws Exception {
public class IntegerType implements GenericType<Integer> {
+ @Override
public Integer getProperty() {
return null;
}
+ @Override
public void setProperty(Integer t) {
}
+ @Override
public List<Integer> getListProperty() {
return null;
}
+ @Override
public void setListProperty(List<Integer> t) {
}
}
public class NumberType implements GenericType<Number> {
+ @Override
public Integer getProperty() {
return null;
}
+ @Override
public void setProperty(Number t) {
}
+ @Override
public List<Number> getListProperty() {
return null;
}
+ @Override
public void setListProperty(List<Number> t) {
}
} | 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/convert/converter/ConvertingComparatorTests.java | @@ -120,6 +120,7 @@ private ArrayList<Entry<String, Integer>> createReverseOrderMapEntryList() {
private static class StringToInteger implements Converter<String, Integer> {
+ @Override
public Integer convert(String source) {
return new Integer(source);
}
@@ -131,6 +132,7 @@ private static class TestComparator extends ComparableComparator<Integer> {
private boolean called;
+ @Override
public int compare(Integer o1, Integer o2) {
assertThat(o1, instanceOf(Integer.class));
assertThat(o2, instanceOf(Integer.class)); | true |
Other | spring-projects | spring-framework | 40357be72bcd687972c0778f03593d076fe05d98.json | Fix various compiler warnings in spring-context
All warning types other than [deprecation] and [unchecked] are now
fixed in spring-context/src/test | spring-context/src/test/java/example/scannable/ServiceInvocationCounter.java | @@ -40,8 +40,7 @@ public void serviceExecution() {}
@Before("serviceExecution()")
public void countUse() {
this.useCount++;
- this.threadLocalCount.set(this.useCount);
- System.out.println("");
+ threadLocalCount.set(this.useCount);
}
public int getCount() { | true |
Other | spring-projects | spring-framework | 40357be72bcd687972c0778f03593d076fe05d98.json | Fix various compiler warnings in spring-context
All warning types other than [deprecation] and [unchecked] are now
fixed in spring-context/src/test | spring-context/src/test/java/org/springframework/beans/factory/config/SimpleMapScope.java | @@ -70,8 +70,8 @@ public Object resolveContextualObject(String key) {
}
public void close() {
- for (Iterator it = this.callbacks.iterator(); it.hasNext();) {
- Runnable runnable = (Runnable) it.next();
+ for (Iterator<Runnable> it = this.callbacks.iterator(); it.hasNext();) {
+ Runnable runnable = it.next();
runnable.run();
}
} | true |
Other | spring-projects | spring-framework | 40357be72bcd687972c0778f03593d076fe05d98.json | Fix various compiler warnings in spring-context
All warning types other than [deprecation] and [unchecked] are now
fixed in spring-context/src/test | spring-context/src/test/java/org/springframework/context/annotation/ConfigurationClassAndBFPPTests.java | @@ -99,14 +99,11 @@ public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
@Test
- @SuppressWarnings("static-access")
public void staticBeanMethodsDoNotRespectScoping() {
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
ctx.register(ConfigWithStaticBeanMethod.class);
ctx.refresh();
-
- ConfigWithStaticBeanMethod config = ctx.getBean(ConfigWithStaticBeanMethod.class);
- assertThat(config.testBean(), not(sameInstance(config.testBean())));
+ assertThat(ConfigWithStaticBeanMethod.testBean(), not(sameInstance(ConfigWithStaticBeanMethod.testBean())));
}
| true |
Other | spring-projects | spring-framework | 40357be72bcd687972c0778f03593d076fe05d98.json | Fix various compiler warnings in spring-context
All warning types other than [deprecation] and [unchecked] are now
fixed in spring-context/src/test | spring-context/src/test/java/org/springframework/validation/DataBinderTests.java | @@ -1444,7 +1444,6 @@ public void testAddAllErrors() {
assertEquals("badName", nameError.getCode());
}
- @SuppressWarnings("unchecked")
public void testBindingWithResortedList() {
IndexedTestBean tb = new IndexedTestBean();
DataBinder binder = new DataBinder(tb, "tb");
@@ -1590,6 +1589,7 @@ public void testNestedGrowingList() {
mpv.add("f[list][1]", "secondValue");
binder.bind(mpv);
assertFalse(binder.getBindingResult().hasErrors());
+ @SuppressWarnings("unchecked")
List<Object> list = (List<Object>) form.getF().get("list");
assertEquals("firstValue", list.get(0));
assertEquals("secondValue", list.get(1)); | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-beans/src/main/java/org/springframework/beans/BeanWrapperImpl.java | @@ -19,7 +19,6 @@
import java.beans.PropertyChangeEvent;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Array;
-import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
@@ -41,7 +40,6 @@
import org.springframework.core.CollectionFactory;
import org.springframework.core.GenericCollectionTypeResolver;
-import org.springframework.core.MethodParameter;
import org.springframework.core.convert.ConversionException;
import org.springframework.core.convert.ConverterNotFoundException;
import org.springframework.core.convert.Property; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-beans/src/main/java/org/springframework/beans/DirectFieldAccessor.java | @@ -16,7 +16,6 @@
package org.springframework.beans;
-import org.springframework.core.MethodParameter;
import org.springframework.core.convert.ConversionException;
import org.springframework.core.convert.ConverterNotFoundException;
import org.springframework.core.convert.TypeDescriptor; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-beans/src/test/java/org/springframework/beans/factory/xml/DelegatingEntityResolverTests.java | @@ -16,8 +16,6 @@
package org.springframework.beans.factory.xml;
-import junit.framework.TestCase;
-
import org.junit.Test;
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-beans/src/test/java/org/springframework/beans/factory/xml/SimpleConstructorNamespaceHandlerTests.java | @@ -20,7 +20,6 @@
import org.junit.Test;
import org.springframework.beans.factory.BeanDefinitionStoreException;
-import org.springframework.core.LocalVariableTableParameterNameDiscoverer;
import org.springframework.core.io.ClassPathResource;
import test.beans.DummyBean; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-beans/src/test/java/org/springframework/beans/support/PagedListHolderTests.java | @@ -17,17 +17,9 @@
package org.springframework.beans.support;
import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-
import junit.framework.TestCase;
-import org.springframework.beans.BeanWrapper;
-import org.springframework.beans.BeanWrapperImpl;
-
import test.beans.TestBean;
/** | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/main/java/org/springframework/context/annotation/AutoProxyRegistrar.java | @@ -18,7 +18,6 @@
import static org.springframework.context.annotation.MetadataUtils.attributesFor;
-import java.util.Map;
import java.util.Set;
import org.apache.commons.logging.Log; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/main/java/org/springframework/context/annotation/DependsOn.java | @@ -20,7 +20,6 @@
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Inherited;
import java.lang.annotation.Documented;
/** | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/main/java/org/springframework/context/support/AbstractRefreshableApplicationContext.java | @@ -24,7 +24,6 @@
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextException;
-import org.springframework.core.LocalVariableTableParameterNameDiscoverer;
/**
* Base class for {@link org.springframework.context.ApplicationContext} | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/main/java/org/springframework/context/support/GenericApplicationContext.java | @@ -27,7 +27,6 @@
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.context.ApplicationContext;
-import org.springframework.core.LocalVariableTableParameterNameDiscoverer;
import org.springframework.core.io.Resource;
import org.springframework.core.io.ResourceLoader;
import org.springframework.core.io.support.ResourcePatternResolver; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/main/java/org/springframework/remoting/support/RemoteInvocationUtils.java | @@ -19,8 +19,6 @@
import java.util.HashSet;
import java.util.Set;
-import org.springframework.core.JdkVersion;
-
/**
* General utilities for handling remote invocations.
* | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/main/java/org/springframework/scheduling/concurrent/ConcurrentTaskExecutor.java | @@ -18,13 +18,9 @@
import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
-import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
-import java.util.concurrent.FutureTask;
-import java.util.concurrent.RejectedExecutionException;
-import org.springframework.core.task.TaskRejectedException;
import org.springframework.core.task.support.TaskExecutorAdapter;
import org.springframework.scheduling.SchedulingTaskExecutor;
| true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/test/java/org/springframework/aop/config/MethodLocatingFactoryBeanTests.java | @@ -19,8 +19,8 @@
import java.lang.reflect.Method;
import static org.easymock.EasyMock.*;
-import org.junit.After;
import static org.junit.Assert.*;
+import org.junit.After;
import org.junit.Before;
import org.junit.Test;
| true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/test/java/org/springframework/context/annotation/AnnotationScopeMetadataResolverTests.java | @@ -16,7 +16,6 @@
package org.springframework.context.annotation;
-import java.lang.annotation.Documented;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/test/java/org/springframework/context/annotation/configuration/BeanMethodQualificationTests.java | @@ -24,12 +24,10 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
-import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
-import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import static org.hamcrest.CoreMatchers.*; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/test/java/org/springframework/context/annotation5/OtherFooDao.java | @@ -18,10 +18,6 @@
import example.scannable.FooDao;
-import org.springframework.context.annotation.Lazy;
-import org.springframework.context.annotation.Primary;
-import org.springframework.stereotype.Repository;
-
/**
* @author Juergen Hoeller
*/ | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/test/java/org/springframework/context/event/EventPublicationInterceptorTests.java | @@ -19,7 +19,6 @@
import static org.easymock.EasyMock.*;
import static org.junit.Assert.assertTrue;
-import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.aop.framework.ProxyFactory; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/test/java/org/springframework/jmx/export/assembler/AbstractMetadataAssemblerTests.java | @@ -18,7 +18,6 @@
import java.util.HashMap;
import java.util.Map;
-import java.util.Arrays;
import javax.management.Descriptor;
import javax.management.MBeanInfo; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/test/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssemblerCustomTests.java | @@ -19,8 +19,6 @@
import javax.management.modelmbean.ModelMBeanAttributeInfo;
import javax.management.modelmbean.ModelMBeanInfo;
-import org.junit.Ignore;
-
/**
* @author Rob Harrop
*/ | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/test/java/org/springframework/jmx/export/assembler/InterfaceBasedMBeanInfoAssemblerMappedTests.java | @@ -22,8 +22,6 @@
import javax.management.modelmbean.ModelMBeanAttributeInfo;
import javax.management.modelmbean.ModelMBeanInfo;
-import org.junit.Ignore;
-
/**
* @author Rob Harrop
*/ | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/test/java/org/springframework/mock/jndi/ExpectedLookupTemplate.java | @@ -21,7 +21,6 @@
import javax.naming.NamingException;
-import org.springframework.core.CollectionFactory;
import org.springframework.jndi.JndiTemplate;
/** | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/test/java/org/springframework/scheduling/concurrent/ScheduledExecutorFactoryBeanTests.java | @@ -31,6 +31,9 @@
import org.junit.Test;
import org.springframework.core.task.NoOpRunnable;
+import static org.mockito.Mockito.*;
+
+
/**
* @author Rick Evans
* @author Juergen Hoeller | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-context/src/test/java/org/springframework/scripting/support/ResourceScriptSourceTests.java | @@ -17,12 +17,11 @@
package org.springframework.scripting.support;
import java.io.ByteArrayInputStream;
-import java.io.FileNotFoundException;
import java.io.IOException;
import junit.framework.TestCase;
-import org.easymock.MockControl;
+import org.easymock.MockControl;
import org.springframework.core.io.ByteArrayResource;
import org.springframework.core.io.Resource;
| true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-core/src/main/java/org/springframework/core/PrioritizedParameterNameDiscoverer.java | @@ -18,7 +18,6 @@
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
-import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
| true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-core/src/main/java/org/springframework/core/io/Resource.java | @@ -18,7 +18,6 @@
import java.io.File;
import java.io.IOException;
-import java.io.InputStream;
import java.net.URI;
import java.net.URL;
| true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-core/src/test/java/org/springframework/core/LocalVariableTableParameterNameDiscovererTests.java | @@ -20,7 +20,6 @@
import java.io.PrintStream;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
-import java.util.Arrays;
import java.util.Date;
import junit.framework.TestCase;
@@ -317,4 +316,4 @@ public static long getDate() {
return date;
}
}
-}
\ No newline at end of file
+} | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-core/src/test/java/org/springframework/core/type/CachingMetadataReaderLeakTest.java | @@ -27,7 +27,6 @@
import org.springframework.core.type.classreading.CachingMetadataReaderFactory;
import org.springframework.core.type.classreading.MetadataReader;
import org.springframework.core.type.classreading.MetadataReaderFactory;
-import org.springframework.core.type.classreading.SimpleMetadataReaderFactory;
/**
* Unit test checking the behaviour of {@link CachingMetadataReaderFactory under load. | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-core/src/test/java/org/springframework/util/xml/AbstractStaxXMLReaderTestCase.java | @@ -25,7 +25,6 @@
import org.easymock.AbstractMatcher;
import org.easymock.MockControl;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-expression/src/main/java/org/springframework/expression/spel/ast/AstUtils.java | @@ -20,7 +20,6 @@
import java.util.List;
import org.springframework.expression.PropertyAccessor;
-import org.springframework.expression.spel.ExpressionState;
/**
* Utilities methods for use in the Ast classes. | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-jdbc/src/test/java/org/springframework/jdbc/core/JdbcTemplateTests.java | @@ -26,7 +26,6 @@
import java.sql.Statement;
import java.sql.Types;
import java.util.ArrayList;
-import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Map; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-jdbc/src/test/java/org/springframework/jdbc/support/CustomSQLExceptionTranslatorRegistrarTests.java | @@ -17,9 +17,6 @@
package org.springframework.jdbc.support;
import java.sql.SQLException;
-import java.util.HashMap;
-import java.util.Map;
-
import org.junit.Before;
import org.junit.Test;
| true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-jms/src/main/java/org/springframework/jms/listener/AbstractPollingMessageListenerContainer.java | @@ -24,7 +24,6 @@
import javax.jms.Session;
import javax.jms.Topic;
-import org.springframework.beans.factory.BeanNameAware;
import org.springframework.jms.connection.ConnectionFactoryUtils;
import org.springframework.jms.connection.JmsResourceHolder;
import org.springframework.jms.connection.SingleConnectionFactory; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-jms/src/test/java/org/springframework/jms/listener/adapter/MessageListenerAdapterTests.java | @@ -33,7 +33,6 @@
import javax.jms.Session;
import javax.jms.TextMessage;
-import junit.framework.TestCase;
import org.easymock.MockControl;
import org.junit.Test;
| true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-jms/src/test/java/org/springframework/jms/listener/adapter/ResponsiveJmsTextMessageReturningMessageDelegate.java | @@ -17,12 +17,6 @@
package org.springframework.jms.listener.adapter;
import javax.jms.TextMessage;
-import javax.jms.MapMessage;
-import javax.jms.BytesMessage;
-import javax.jms.ObjectMessage;
-
-import java.util.Map;
-import java.io.Serializable;
/**
* See the MessageListenerAdapterTests class for usage. | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-orm/src/main/java/org/springframework/orm/hibernate3/support/AbstractLobType.java | @@ -22,7 +22,6 @@
import java.sql.ResultSet;
import java.sql.SQLException;
-import javax.transaction.Status;
import javax.transaction.TransactionManager;
import org.apache.commons.logging.Log;
@@ -31,14 +30,10 @@
import org.hibernate.usertype.UserType;
import org.hibernate.util.EqualsHelper;
-import org.springframework.dao.DataAccessResourceFailureException;
-import org.springframework.jdbc.support.lob.JtaLobCreatorSynchronization;
import org.springframework.jdbc.support.lob.LobCreator;
import org.springframework.jdbc.support.lob.LobHandler;
-import org.springframework.jdbc.support.lob.SpringLobCreatorSynchronization;
import org.springframework.jdbc.support.lob.LobCreatorUtils;
import org.springframework.orm.hibernate3.LocalSessionFactoryBean;
-import org.springframework.transaction.support.TransactionSynchronizationManager;
/**
* Abstract base class for Hibernate UserType implementations that map to LOBs. | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-orm/src/main/java/org/springframework/orm/ibatis/SqlMapClientOperations.java | @@ -19,7 +19,6 @@
import java.util.List;
import java.util.Map;
-import com.ibatis.common.util.PaginatedList;
import com.ibatis.sqlmap.client.event.RowHandler;
import org.springframework.dao.DataAccessException; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-orm/src/test/java/org/springframework/mock/jndi/ExpectedLookupTemplate.java | @@ -21,7 +21,6 @@
import javax.naming.NamingException;
-import org.springframework.core.CollectionFactory;
import org.springframework.jndi.JndiTemplate;
/** | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-orm/src/test/java/org/springframework/orm/hibernate3/HibernateJtaTransactionTests.java | @@ -40,7 +40,6 @@
import org.hibernate.classic.Session;
import org.hibernate.engine.SessionFactoryImplementor;
import org.hibernate.engine.SessionImplementor;
-import org.junit.Ignore;
import org.junit.Test;
import org.springframework.dao.DataAccessException;
import org.springframework.transaction.MockJtaTransaction; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-orm/src/test/java/org/springframework/orm/hibernate3/support/OpenSessionInViewTests.java | @@ -17,12 +17,6 @@
package org.springframework.orm.hibernate3.support;
import static org.easymock.EasyMock.*;
-import static org.easymock.EasyMock.createMock;
-import static org.easymock.EasyMock.createStrictMock;
-import static org.easymock.EasyMock.expect;
-import static org.easymock.EasyMock.replay;
-import static org.easymock.EasyMock.reset;
-import static org.easymock.EasyMock.verify;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-orm/src/test/java/org/springframework/orm/jpa/ApplicationManagedEntityManagerIntegrationTests.java | @@ -23,7 +23,6 @@
import javax.persistence.Query;
import javax.persistence.TransactionRequiredException;
-import org.springframework.aop.support.AopUtils;
import org.springframework.orm.jpa.domain.Person;
import org.springframework.orm.jpa.AbstractEntityManagerFactoryIntegrationTests;
import org.springframework.test.annotation.NotTransactional; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-orm/src/test/java/org/springframework/orm/jpa/ContainerManagedEntityManagerIntegrationTests.java | @@ -24,7 +24,6 @@
import javax.persistence.Query;
import javax.persistence.TransactionRequiredException;
-import org.springframework.aop.support.AopUtils;
import org.springframework.dao.DataAccessException;
import org.springframework.dao.support.PersistenceExceptionTranslator;
import org.springframework.orm.jpa.domain.Person; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-orm/src/test/java/org/springframework/orm/jpa/domain/Person.java | @@ -25,7 +25,6 @@
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
-import javax.persistence.Table;
import org.springframework.beans.TestBean;
import org.springframework.beans.factory.annotation.Configurable; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-orm/src/test/java/org/springframework/test/AbstractTransactionalDataSourceSpringContextTests.java | @@ -29,7 +29,6 @@
import org.springframework.dao.DataAccessResourceFailureException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.test.jdbc.JdbcTestUtils;
-import org.springframework.util.StringUtils;
/**
* Subclass of AbstractTransactionalSpringContextTests that adds some convenience | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-oxm/src/main/java/org/springframework/oxm/xmlbeans/XmlBeansMarshaller.java | @@ -21,7 +21,6 @@
import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;
-import java.io.FilterInputStream;
import java.util.ArrayList;
import java.util.List;
import java.lang.ref.WeakReference;
@@ -38,8 +37,6 @@
import org.apache.xmlbeans.XmlOptions;
import org.apache.xmlbeans.XmlSaxHandler;
import org.apache.xmlbeans.XmlValidationError;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-oxm/src/test/java/org/springframework/oxm/castor/CastorMarshallerTests.java | @@ -28,7 +28,6 @@
import org.custommonkey.xmlunit.XMLUnit;
import org.custommonkey.xmlunit.XpathEngine;
import org.junit.Assert;
-import org.junit.Ignore;
import org.junit.Test;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-oxm/src/test/java/org/springframework/oxm/jaxb/Jaxb2MarshallerTests.java | @@ -52,7 +52,6 @@
import static org.custommonkey.xmlunit.XMLAssert.assertFalse;
import static org.custommonkey.xmlunit.XMLAssert.*;
-import static org.custommonkey.xmlunit.XMLAssert.fail;
import static org.easymock.EasyMock.*;
import static org.junit.Assert.assertTrue;
| true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-tx/src/main/java/org/springframework/jca/work/WorkManagerTaskExecutor.java | @@ -29,7 +29,6 @@
import javax.resource.spi.work.WorkRejectedException;
import org.springframework.beans.factory.InitializingBean;
-import org.springframework.core.task.AsyncTaskExecutor;
import org.springframework.core.task.TaskRejectedException;
import org.springframework.core.task.TaskTimeoutException;
import org.springframework.jca.context.BootstrapContextAware; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-tx/src/test/java/org/springframework/mock/jndi/ExpectedLookupTemplate.java | @@ -21,7 +21,6 @@
import javax.naming.NamingException;
-import org.springframework.core.CollectionFactory;
import org.springframework.jndi.JndiTemplate;
/** | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-web/src/main/java/org/springframework/web/client/RestTemplate.java | @@ -48,7 +48,6 @@
import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter;
import org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter;
import org.springframework.http.converter.xml.SourceHttpMessageConverter;
-import org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter;
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
import org.springframework.web.util.UriTemplate; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-web/src/main/java/org/springframework/web/filter/HttpPutFormContentFilter.java | @@ -39,7 +39,6 @@
import org.springframework.http.MediaType;
import org.springframework.http.converter.FormHttpMessageConverter;
import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter;
-import org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter;
import org.springframework.http.server.ServletServerHttpRequest;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-web/src/main/java/org/springframework/web/filter/ShallowEtagHeaderFilter.java | @@ -32,8 +32,6 @@
import org.springframework.util.Assert;
import org.springframework.util.DigestUtils;
import org.springframework.util.FileCopyUtils;
-import org.springframework.web.context.request.async.WebAsyncManager;
-import org.springframework.web.context.request.async.WebAsyncUtils;
import org.springframework.web.util.WebUtils;
/** | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-web/src/main/java/org/springframework/web/multipart/commons/CommonsMultipartFile.java | @@ -21,9 +21,6 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
-import java.util.Collections;
-import java.util.Iterator;
-
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItem; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java | @@ -27,7 +27,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
/** | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-web/src/test/java/org/springframework/http/converter/FormHttpMessageConverterTests.java | @@ -41,7 +41,6 @@
import org.springframework.http.MockHttpInputMessage;
import org.springframework.http.MockHttpOutputMessage;
import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter;
-import org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
| true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-web/src/test/java/org/springframework/http/converter/HttpMessageConverterTests.java | @@ -17,15 +17,6 @@
package org.springframework.http.converter;
import java.io.IOException;
-import java.io.StringReader;
-import java.io.StringWriter;
-
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBElement;
-import javax.xml.transform.Source;
-import javax.xml.transform.stream.StreamSource;
-import javax.xml.namespace.QName;
-
import static org.junit.Assert.*;
import org.junit.Test;
| true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-web/src/test/java/org/springframework/mock/web/test/MockMultipartFile.java | @@ -20,9 +20,6 @@
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
-import java.util.Collections;
-import java.util.Iterator;
-
import org.springframework.util.Assert;
import org.springframework.util.FileCopyUtils;
import org.springframework.web.multipart.MultipartFile; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc-portlet/src/main/java/org/springframework/web/portlet/mvc/annotation/DefaultAnnotationHandlerMapping.java | @@ -18,10 +18,8 @@
import java.lang.reflect.Method;
import java.util.Arrays;
-import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashSet;
-import java.util.Map;
import java.util.Set;
import javax.portlet.ActionRequest;
import javax.portlet.ClientDataRequest; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc-portlet/src/test/java/org/springframework/mock/web/MockMultipartFile.java | @@ -20,9 +20,6 @@
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
-import java.util.Collections;
-import java.util.Iterator;
-
import org.springframework.util.Assert;
import org.springframework.util.FileCopyUtils;
import org.springframework.web.multipart.MultipartFile; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc-portlet/src/test/java/org/springframework/web/portlet/context/AbstractXmlWebApplicationContextTests.java | @@ -16,18 +16,15 @@
package org.springframework.web.portlet.context;
-import java.util.Locale;
import javax.servlet.ServletException;
import org.springframework.beans.TestBean;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.AbstractApplicationContextTests;
import org.springframework.context.ConfigurableApplicationContext;
-import org.springframework.context.NoSuchMessageException;
import org.springframework.context.TestListener;
import org.springframework.web.context.ConfigurableWebApplicationContext;
-import org.springframework.web.context.support.XmlWebApplicationContext;
/**
* Should ideally be eliminated. Copied when splitting .testsuite up into individual bundles. | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc-portlet/src/test/java/org/springframework/web/portlet/context/PortletWebRequestTests.java | @@ -30,7 +30,6 @@
import org.junit.Test;
import org.springframework.mock.web.portlet.MockPortletRequest;
-import org.springframework.mock.web.portlet.MockPortletResponse;
import org.springframework.mock.web.portlet.MockRenderRequest;
import org.springframework.mock.web.portlet.MockRenderResponse;
import org.springframework.web.multipart.MultipartRequest; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/main/java/org/springframework/web/servlet/HttpServletBean.java | @@ -35,7 +35,6 @@
import org.springframework.beans.PropertyValue;
import org.springframework.beans.PropertyValues;
import org.springframework.context.EnvironmentAware;
-import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.Environment;
import org.springframework.core.env.EnvironmentCapable;
import org.springframework.core.io.Resource; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java | @@ -42,7 +42,6 @@
import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter;
import org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter;
import org.springframework.http.converter.xml.SourceHttpMessageConverter;
-import org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter;
import org.springframework.util.ClassUtils;
import org.springframework.util.xml.DomUtils;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java | @@ -49,7 +49,6 @@
import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter;
import org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter;
import org.springframework.http.converter.xml.SourceHttpMessageConverter;
-import org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter;
import org.springframework.util.ClassUtils;
import org.springframework.validation.Errors;
import org.springframework.validation.MessageCodesResolver; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodArgumentResolver.java | @@ -17,9 +17,6 @@
package org.springframework.web.servlet.mvc.method.annotation;
import java.io.IOException;
-import java.lang.reflect.Array;
-import java.lang.reflect.GenericArrayType;
-import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.util.ArrayList;
@@ -163,4 +160,4 @@ protected ServletServerHttpRequest createInputMessage(NativeWebRequest webReques
return new ServletServerHttpRequest(servletRequest);
}
-}
\ No newline at end of file
+} | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java | @@ -47,7 +47,6 @@
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter;
import org.springframework.http.converter.xml.SourceHttpMessageConverter;
-import org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter;
import org.springframework.ui.ModelMap;
import org.springframework.util.Assert;
import org.springframework.util.CollectionUtils; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/AbstractHtmlElementTag.java | @@ -21,7 +21,6 @@
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.DynamicAttributes;
-import org.springframework.util.Assert;
import org.springframework.util.CollectionUtils;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/OptionWriter.java | @@ -20,18 +20,12 @@
import java.util.Collection;
import java.util.Map;
-import javax.servlet.ServletRequest;
-import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.PageContext;
-
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.PropertyAccessorFactory;
import org.springframework.util.Assert;
import org.springframework.util.CollectionUtils;
import org.springframework.web.servlet.support.BindStatus;
-import org.springframework.web.servlet.support.RequestDataValueProcessor;
-import org.springframework.web.servlet.support.RequestContext;
/**
* Provides supporting functionality to render a list of '{@code option}' | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/OptionsTag.java | @@ -17,8 +17,6 @@
package org.springframework.web.servlet.tags.form;
import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.TagSupport;
-
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/main/java/org/springframework/web/servlet/view/tiles2/AbstractSpringPreparerFactory.java | @@ -20,10 +20,7 @@
import org.apache.tiles.context.TilesRequestContext;
import org.apache.tiles.preparer.PreparerFactory;
import org.apache.tiles.preparer.ViewPreparer;
-import org.apache.tiles.servlet.context.ServletTilesRequestContext;
-
import org.springframework.web.context.WebApplicationContext;
-import org.springframework.web.context.support.WebApplicationContextUtils;
import org.springframework.web.servlet.DispatcherServlet;
/** | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/config/MvcNamespaceTests.java | @@ -30,8 +30,6 @@
import java.util.Date;
import java.util.List;
import java.util.Locale;
-import java.util.Map;
-
import javax.servlet.RequestDispatcher;
import javax.validation.constraints.NotNull;
| true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupportExtensionTests.java | @@ -21,8 +21,6 @@
import java.util.Arrays;
import java.util.List;
-import java.util.Map;
-
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.DirectFieldAccessor; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/handler/PathMatchingUrlHandlerMappingTests.java | @@ -16,8 +16,6 @@
package org.springframework.web.servlet.handler;
-import junit.framework.TestCase;
-
import org.springframework.mock.web.test.MockHttpServletRequest;
import org.springframework.mock.web.test.MockServletContext;
import org.springframework.web.context.ConfigurableWebApplicationContext; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/handler/SimpleUrlHandlerMappingTests.java | @@ -19,8 +19,6 @@
import java.util.Map;
import java.util.LinkedHashMap;
-import junit.framework.TestCase;
-
import org.springframework.beans.FatalBeanException;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.mock.web.test.MockHttpServletRequest; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/WebContentInterceptorTests.java | @@ -19,21 +19,15 @@
import java.util.List;
import java.util.Properties;
-import junit.framework.TestCase;
-
import org.springframework.mock.web.test.MockHttpServletRequest;
import org.springframework.mock.web.test.MockHttpServletResponse;
import org.springframework.web.servlet.support.WebContentGenerator;
import org.junit.Before;
import org.junit.Test;
-import org.junit.Assert;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.*;
-import static org.junit.Assert.*;
-import static org.junit.Assert.*;
-import static org.junit.Assert.*;
/**
* @author Rick Evans | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/condition/RequestMethodsRequestConditionTests.java | @@ -17,11 +17,6 @@
package org.springframework.web.servlet.mvc.condition;
import static org.junit.Assert.*;
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
-
import org.junit.Test;
import org.springframework.mock.web.test.MockHttpServletRequest;
import org.springframework.web.bind.annotation.RequestMethod; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/PathVariableMapMethodArgumentResolverTests.java | @@ -30,7 +30,6 @@
import org.springframework.core.MethodParameter;
import org.springframework.mock.web.test.MockHttpServletRequest;
import org.springframework.mock.web.test.MockHttpServletResponse;
-import org.springframework.web.bind.ServletRequestBindingException;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.context.request.ServletWebRequest;
import org.springframework.web.method.support.ModelAndViewContainer; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartIntegrationTests.java | @@ -42,7 +42,6 @@
import org.springframework.http.converter.ResourceHttpMessageConverter;
import org.springframework.http.converter.json.MappingJacksonHttpMessageConverter;
import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter;
-import org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter;
import org.springframework.stereotype.Controller;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorMockTests.java | @@ -32,7 +32,6 @@
import java.io.IOException;
import java.lang.reflect.Method;
-import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
@@ -46,11 +45,7 @@
import org.springframework.http.HttpInputMessage;
import org.springframework.http.HttpOutputMessage;
import org.springframework.http.MediaType;
-import org.springframework.http.converter.ByteArrayHttpMessageConverter;
import org.springframework.http.converter.HttpMessageConverter;
-import org.springframework.http.converter.HttpMessageNotReadableException;
-import org.springframework.http.converter.StringHttpMessageConverter;
-import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.mock.web.test.MockHttpServletRequest;
import org.springframework.mock.web.test.MockHttpServletResponse;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorTests.java | @@ -33,7 +33,6 @@
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter;
-import org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter;
import org.springframework.mock.web.test.MockHttpServletRequest;
import org.springframework.mock.web.test.MockHttpServletResponse;
import org.springframework.util.MultiValueMap; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/tags/EvalTagTests.java | @@ -24,7 +24,6 @@
import org.springframework.context.support.GenericApplicationContext;
import org.springframework.core.env.MapPropertySource;
-import org.springframework.core.env.PropertySource;
import org.springframework.format.annotation.NumberFormat;
import org.springframework.format.annotation.NumberFormat.Style;
import org.springframework.format.support.FormattingConversionServiceFactoryBean; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/tags/UrlTagTests.java | @@ -16,9 +16,7 @@
package org.springframework.web.servlet.tags;
-import java.io.UnsupportedEncodingException;
import java.lang.reflect.Method;
-import java.net.URLDecoder;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List; | true |
Other | spring-projects | spring-framework | 731d5be6440a400aca2fb92c5c6d6b17d252879e.json | Fix warnings due to unused import statements | spring-webmvc/src/test/java/org/springframework/web/servlet/tags/form/FormTagTests.java | @@ -16,7 +16,6 @@
package org.springframework.web.servlet.tags.form;
-import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.verify;
@@ -27,8 +26,6 @@
import javax.servlet.jsp.tagext.Tag;
import org.springframework.mock.web.test.MockHttpServletRequest;
-import org.springframework.web.context.support.StaticWebApplicationContext;
-import org.springframework.web.servlet.support.RequestContextUtils;
import org.springframework.web.servlet.support.RequestDataValueProcessor;
/** | true |
Other | spring-projects | spring-framework | 8597ec25ec4da57b93aaf956b1219db4d214e961.json | Fix various Javadoc warnings
Issue: SPR-10128 | spring-aop/src/test/java/org/springframework/aop/aspectj/AspectJExpressionPointcutTests.java | @@ -121,8 +121,8 @@ public void absquatulate() {
/**
* This and target are equivalent. Really instanceof pointcuts.
- * @throws Exception
* @param which this or target
+ * @throws Exception
* @throws NoSuchMethodException
* @throws SecurityException
*/
@@ -367,4 +367,4 @@ public void reset() {
this.count = 0;
}
-}
\ No newline at end of file
+} | true |
Other | spring-projects | spring-framework | 8597ec25ec4da57b93aaf956b1219db4d214e961.json | Fix various Javadoc warnings
Issue: SPR-10128 | spring-aspects/src/main/java/org/springframework/mock/staticmock/AbstractMethodMockingControl.aj | @@ -106,7 +106,7 @@ public abstract aspect AbstractMethodMockingControl percflow(mockStaticsTestMeth
* Validate the call and provide the expected return value
* @param lastSig
* @param args
- * @return
+ * @return the return value
*/
public Object respond(String lastSig, Object[] args) {
Call call = nextCall(); | true |
Other | spring-projects | spring-framework | 8597ec25ec4da57b93aaf956b1219db4d214e961.json | Fix various Javadoc warnings
Issue: SPR-10128 | spring-beans/src/test/java/org/springframework/beans/factory/support/BeanFactoryGenericsTests.java | @@ -630,8 +630,8 @@ public void testSetBean() throws Exception {
* public static <T> T createMock(Class<T> toMock)
* }</pre>
*
+ * See SPR-9493
* @since 3.2
- * @see SPR-9493
*/
@Test
public void parameterizedFactoryMethod() { | true |
Other | spring-projects | spring-framework | 8597ec25ec4da57b93aaf956b1219db4d214e961.json | Fix various Javadoc warnings
Issue: SPR-10128 | spring-context/src/main/java/org/springframework/ejb/support/AbstractStatelessSessionBean.java | @@ -81,16 +81,16 @@ public void ejbCreate() throws CreateException {
/**
- * @see javax.ejb.SessionBean#ejbActivate(). This method always throws an exception, as
- * it should not be invoked by the EJB container.
+ * This method always throws an exception, as it should not be invoked by the EJB container.
+ * @see javax.ejb.SessionBean#ejbActivate()
*/
public void ejbActivate() throws EJBException {
throw new IllegalStateException("ejbActivate must not be invoked on a stateless session bean");
}
/**
- * @see javax.ejb.SessionBean#ejbPassivate(). This method always throws an exception, as
- * it should not be invoked by the EJB container.
+ * This method always throws an exception, as it should not be invoked by the EJB container.
+ * @see javax.ejb.SessionBean#ejbPassivate()
*/
public void ejbPassivate() throws EJBException {
throw new IllegalStateException("ejbPassivate must not be invoked on a stateless session bean"); | true |
Other | spring-projects | spring-framework | 8597ec25ec4da57b93aaf956b1219db4d214e961.json | Fix various Javadoc warnings
Issue: SPR-10128 | spring-context/src/test/java/org/springframework/aop/framework/autoproxy/AdvisorAutoProxyCreatorTests.java | @@ -41,7 +41,7 @@
/**
* Tests for auto proxy creation by advisor recognition.
*
- * @see org.springframework.aop.framework.autoproxy.AdvisorAutoProxyCreatorIntegrationTests;
+ * @see org.springframework.aop.framework.autoproxy.AdvisorAutoProxyCreatorIntegrationTests
*
* @author Rod Johnson
* @author Dave Syer | true |
Other | spring-projects | spring-framework | 8597ec25ec4da57b93aaf956b1219db4d214e961.json | Fix various Javadoc warnings
Issue: SPR-10128 | spring-core/src/main/java/org/springframework/core/env/Environment.java | @@ -1,5 +1,5 @@
/*
- * Copyright 2002-2011 the original author or authors.
+ * Copyright 2002-2012 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.
@@ -102,8 +102,8 @@ public interface Environment extends PropertyResolver {
* explicit active profiles, whether one or more of the given profiles is included in
* the set of default profiles. If a profile begins with '!' the logic is inverted,
* i.e. the method will return true if the given profile is <em>not</em> active. For
- * example, {@code env.acceptsProfiles("p1", "!p2")} will return true if profile 'p1'
- * is active or 'p2' is not active.
+ * example, <pre>env.acceptsProfiles("p1", "!p2")</pre> will return true if profile
+ * 'p1' is active or 'p2' is not active.
* @throws IllegalArgumentException if called with zero arguments
* @throws IllegalArgumentException if any profile is null, empty or whitespace-only
* @see #getActiveProfiles | true |
Other | spring-projects | spring-framework | 8597ec25ec4da57b93aaf956b1219db4d214e961.json | Fix various Javadoc warnings
Issue: SPR-10128 | spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/ParameterizedBeanPropertyRowMapper.java | @@ -36,7 +36,7 @@
* float, Float, double, Double, BigDecimal, <code>java.util.Date</code>, etc.
*
* <p>The mapper can be configured to use the primitives default value when mapping null values
- * by setting the {@link #setPrimitivesDefaultedForNullValue 'primitivesDefaultedForNullValue'}
+ * by setting the '{@link #setPrimitivesDefaultedForNullValue primitivesDefaultedForNullValue}'
* flag to 'true'.
*
* <p>To facilitate mapping between columns and fields that don't have matching names, | true |
Other | spring-projects | spring-framework | 8597ec25ec4da57b93aaf956b1219db4d214e961.json | Fix various Javadoc warnings
Issue: SPR-10128 | spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/DatabasePopulatorTests.java | @@ -251,7 +251,7 @@ public void testBuildWithSelectStatements() throws Exception {
}
/**
- * @see SPR-9457
+ * See SPR-9457
*/
@Test
public void usesBoundConnectionIfAvailable() throws SQLException {
@@ -269,7 +269,7 @@ public void usesBoundConnectionIfAvailable() throws SQLException {
}
/**
- * @see SPR-9781
+ * See SPR-9781
*/
@Test(timeout = 1000)
public void executesHugeScriptInReasonableTime() throws SQLException { | true |
Other | spring-projects | spring-framework | 8597ec25ec4da57b93aaf956b1219db4d214e961.json | Fix various Javadoc warnings
Issue: SPR-10128 | spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/package-info.java | @@ -1,9 +1,7 @@
-
/**
- * MVC infrastructure for annotation-based handler method processing,
- * building on the <code>org.springframework.web.method.annotation</code> package.
- * Entry points are {@link org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping}
+ * MVC infrastructure for annotation-based handler method processing, building on the
+ * {@code org.springframework.web.method.annotation} package. Entry points are
+ * {@link org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping}
* and {@link org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter}.
*/
package org.springframework.web.servlet.mvc.method.annotation;
- | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.