No effective change - code cleanup - return void (unused return values), remove unused methods

This commit is contained in:
Robin Bygrave committed 2015-08-01 17:54:06 +12:00
1 parent 93f13113e6
commit 204b9ca6e5
4 files changed
+4 -22

No files matched your search

@@ -9,17 +9,16 @@ import com.avaje.ebeaninternal.server.deploy.BeanPropertyAssocMany;
public class CachedBeanDataToBean {
public static boolean load(BeanDescriptor<?> desc, EntityBean bean, CachedBeanData cacheBeanData) {
public static void load(BeanDescriptor<?> desc, EntityBean bean, CachedBeanData cacheBeanData) {
EntityBeanIntercept ebi = bean._ebean_getIntercept();
BeanProperty idProperty = desc.getIdProperty();
if (idProperty != null) {
// load the id property
loadProperty(bean, cacheBeanData, ebi, idProperty);
}
// load the non-many properties
BeanProperty[] props = desc.propertiesNonMany();
for (int i = 0; i < props.length; i++) {
@@ -32,12 +31,10 @@ public class CachedBeanDataToBean {
}
ebi.setLoadedLazy();
return true;
}
private static void loadProperty(EntityBean bean, CachedBeanData cacheBeanData, EntityBeanIntercept ebi, BeanProperty prop) {
int propertyIndex = prop.getPropertyIndex();
if (cacheBeanData.isLoaded(propertyIndex)) {
if (ebi.isLoadedProperty(propertyIndex)) {
@@ -121,13 +121,6 @@ public class DefaultExampleExpression implements SpiExpression, ExampleExpressio
return this;
}
/**
* This will return null for this example expression.
*/
public String getPropertyName() {
return null;
}
/**
* Adds bind values to the request.
*/
@@ -69,10 +69,6 @@ public class CtCompoundPropertyElAdapter implements ElPropertyValue {
return null;
}
public StringFormatter getStringFormatter() {
return null;
}
public StringParser getStringParser() {
return null;
}
@@ -73,10 +73,6 @@ public class DefaultExpressionRequest implements SpiExpressionRequest {
bindValues.add(bindValue);
}
public boolean includeProperty(String propertyName) {
return true;
}
public String getSql() {
return sb.toString();
}