changing to use source 1.5; removed some @Override on interface methods; cleaned up unused imports

This commit is contained in:
Thomas Risberg
2011-04-08 10:41:11 -04:00
parent 0358cac9a5
commit a0813b4c85
7 changed files with 2 additions and 22 deletions

View File

@@ -190,7 +190,6 @@ public class PageImpl<T> implements Page<T> {
*
* @see org.springframework.data.domain.Page#hasContent()
*/
@Override
public boolean hasContent() {
return !content.isEmpty();

View File

@@ -52,17 +52,14 @@ public class MappingContextAwareBeanPostProcessor implements BeanPostProcessor,
this.mappingContextBeanName = mappingContextBeanName;
}
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
this.applicationContext = applicationContext;
}
@Override
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
return bean;
}
@Override
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
if (bean instanceof MappingContextAware) {
if (null == mappingContext) {

View File

@@ -88,7 +88,6 @@ public abstract class AbstractConstructorEntityInstantiator<BACKING_INTERFACE, S
};
}
@SuppressWarnings("unchecked")
protected <T extends BACKING_INTERFACE> StateBackedCreator<T, STATE> createWithoutConstructorInvocation(final Class<T> type, Class<STATE> stateType) {
ReflectionFactory rf = ReflectionFactory.getReflectionFactory();
Constructor<?> objectConstructor = getDeclaredConstructor(Object.class);

View File

@@ -60,7 +60,6 @@ class DefaultRepositoryInformation implements RepositoryInformation {
/* (non-Javadoc)
* @see org.springframework.data.repository.support.RepositoryMetadata#getRepositoryInterface()
*/
@Override
public Class<?> getRepositoryInterface() {
return metadata.getRepositoryInterface();
}
@@ -68,7 +67,6 @@ class DefaultRepositoryInformation implements RepositoryInformation {
/* (non-Javadoc)
* @see org.springframework.data.repository.support.RepositoryMetadata#getDomainClass()
*/
@Override
public Class<?> getDomainClass() {
return metadata.getDomainClass();
}
@@ -76,7 +74,6 @@ class DefaultRepositoryInformation implements RepositoryInformation {
/* (non-Javadoc)
* @see org.springframework.data.repository.support.RepositoryMetadata#getIdClass()
*/
@Override
public Class<?> getIdClass() {
return metadata.getIdClass();
}

View File

@@ -16,15 +16,6 @@
package org.springframework.data.repository.support;
import static org.springframework.core.GenericTypeResolver.*;
import static org.springframework.data.repository.util.ClassUtils.*;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import org.springframework.data.repository.Repository;
import org.springframework.util.Assert;

View File

@@ -6,7 +6,6 @@ import java.lang.reflect.GenericArrayType;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@@ -149,7 +148,6 @@ class TypeDiscoverer implements TypeInformation {
/* (non-Javadoc)
* @see org.springframework.data.util.TypeInformation#isMap()
*/
@Override
public boolean isMap() {
Class<?> rawType = getType();
return rawType == null ? false : Map.class.isAssignableFrom(rawType);
@@ -171,7 +169,6 @@ class TypeDiscoverer implements TypeInformation {
/* (non-Javadoc)
* @see org.springframework.data.util.TypeInformation#isCollectionLike()
*/
@Override
public boolean isCollectionLike() {
Class<?> rawType = getType();

View File

@@ -255,8 +255,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.5</source>
<target>1.5</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>false</showDeprecation>