Removed some compiler warnings.
This commit is contained in:
@@ -57,7 +57,7 @@ public class MongoJmxParser implements BeanDefinitionParser {
|
||||
|
||||
}
|
||||
|
||||
protected void createBeanDefEntry(Class clazz, CompositeComponentDefinition compositeDef, String mongoRefName, Object eleSource, ParserContext parserContext) {
|
||||
protected void createBeanDefEntry(Class<?> clazz, CompositeComponentDefinition compositeDef, String mongoRefName, Object eleSource, ParserContext parserContext) {
|
||||
BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(clazz);
|
||||
builder.getRawBeanDefinition().setSource(eleSource);
|
||||
builder.addConstructorArgReference(mongoRefName);
|
||||
|
||||
@@ -51,6 +51,7 @@ import org.springframework.util.comparator.CompoundComparator;
|
||||
public class SimpleMongoConverter implements MongoConverter {
|
||||
|
||||
private static final Log LOG = LogFactory.getLog(SimpleMongoConverter.class);
|
||||
@SuppressWarnings("unchecked")
|
||||
private static final List<Class<?>> MONGO_TYPES = Arrays.asList(Number.class, Date.class, String.class, DBObject.class);
|
||||
private static final Set<String> SIMPLE_TYPES;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ import org.springframework.context.ApplicationEvent;
|
||||
*/
|
||||
public class CollectionCreatedEvent extends ApplicationEvent {
|
||||
|
||||
private static final long serialVersionUID = -7258679124450904006L;
|
||||
private final DBObject options;
|
||||
|
||||
public CollectionCreatedEvent(String collection, DBObject options) {
|
||||
|
||||
@@ -24,6 +24,7 @@ import org.springframework.context.ApplicationEvent;
|
||||
*/
|
||||
public class InsertEvent extends ApplicationEvent {
|
||||
|
||||
private static final long serialVersionUID = 8713413423411L;
|
||||
private final String collection;
|
||||
|
||||
public InsertEvent(String collection, DBObject dbo) {
|
||||
|
||||
@@ -24,6 +24,7 @@ import org.springframework.context.ApplicationEvent;
|
||||
*/
|
||||
public class SaveEvent extends ApplicationEvent {
|
||||
|
||||
private static final long serialVersionUID = -5583681211168904206L;
|
||||
private final String collection;
|
||||
|
||||
public SaveEvent(String collection, DBObject source) {
|
||||
|
||||
@@ -24,6 +24,8 @@ import org.springframework.context.ApplicationEvent;
|
||||
*/
|
||||
public class WriteResultEvent extends ApplicationEvent {
|
||||
|
||||
private static final long serialVersionUID = 4460770341573211038L;
|
||||
|
||||
public WriteResultEvent(WriteResult result) {
|
||||
super(result);
|
||||
}
|
||||
@@ -31,5 +33,4 @@ public class WriteResultEvent extends ApplicationEvent {
|
||||
public WriteResult getWriteResult() {
|
||||
return (WriteResult) source;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -24,7 +24,8 @@ import org.springframework.data.mapping.model.PersistentEntity;
|
||||
* @author Jon Brisbin <jbrisbin@vmware.com>
|
||||
*/
|
||||
public class MongoMappingEvent<T> extends ApplicationEvent {
|
||||
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private final EventType type;
|
||||
private final PersistentEntity<T> entity;
|
||||
|
||||
@@ -43,6 +44,7 @@ public class MongoMappingEvent<T> extends ApplicationEvent {
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public T getSource() {
|
||||
return (T) super.getSource();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user