No effective change - @SuppressWarnings("unchecked")

This commit is contained in:
Robin Bygrave
2015-08-02 13:48:15 +12:00
parent 0e793036fb
commit d5a8bf38ad
6 changed files with 6 additions and 2 deletions
+1
View File
@@ -441,6 +441,7 @@ public abstract class Model {
*
* }</pre>
*/
@SuppressWarnings("unchecked")
public Find() {
this.serverName = null;
this.type = (Class<T>)ClassUtil.getSecondArgumentType(getClass());
@@ -91,12 +91,13 @@ public final class BeanMapHelp<T> implements BeanCollectionHelp<T> {
}
@Override
@SuppressWarnings("unchecked")
public BeanCollection<T> createEmptyNoParent() {
return new BeanMap();
}
@Override
@SuppressWarnings("rawtypes")
@SuppressWarnings("unchecked")
public BeanCollection<T> createEmpty(EntityBean ownerBean) {
BeanMap beanMap = new BeanMap(loader, ownerBean, propertyName);
@@ -66,6 +66,7 @@ public final class BeanSetHelp<T> implements BeanCollectionHelp<T> {
}
@Override
@SuppressWarnings("unchecked")
public BeanCollection<T> createEmptyNoParent() {
return new BeanSet();
}
@@ -27,6 +27,7 @@ public class CompoundTypePeriod implements CompoundType<Period> {
}
@Override
@SuppressWarnings("unchecked")
public CompoundTypeProperty<Period, ?>[] getProperties() {
return properties;
}
@@ -1,7 +1,6 @@
package com.avaje.ebeaninternal.server.type;
import com.avaje.ebean.bean.EntityBean;
import com.avaje.ebean.text.StringFormatter;
import com.avaje.ebean.text.StringParser;
import com.avaje.ebeaninternal.server.deploy.BeanProperty;
import com.avaje.ebeaninternal.server.el.ElPropertyValue;
@@ -25,6 +25,7 @@ public class BeanCollectionFactory {
/**
* Create a BeanCollection for the given parameters.
*/
@SuppressWarnings("unchecked")
public static BeanCollection<?> create(SpiQuery.Type manyType) {
switch (manyType) {