mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor tidy InheritInfo - no effective change
This commit is contained in:
@@ -11,6 +11,7 @@ import java.lang.reflect.Modifier;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
@@ -33,7 +34,7 @@ public class InheritInfo {
|
||||
|
||||
private final Class<?> type;
|
||||
|
||||
private final ArrayList<InheritInfo> children = new ArrayList<>();
|
||||
private final List<InheritInfo> children = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* Map of discriminator values to InheritInfo.
|
||||
@@ -111,7 +112,7 @@ public class InheritInfo {
|
||||
* return true if anything in the inheritance hierarchy has a relationship with a save cascade on
|
||||
* it.
|
||||
*/
|
||||
public boolean isSaveRecurseSkippable() {
|
||||
boolean isSaveRecurseSkippable() {
|
||||
return root.isNodeSaveRecurseSkippable();
|
||||
}
|
||||
|
||||
@@ -131,7 +132,7 @@ public class InheritInfo {
|
||||
* return true if anything in the inheritance hierarchy has a relationship with a delete cascade
|
||||
* on it.
|
||||
*/
|
||||
public boolean isDeleteRecurseSkippable() {
|
||||
boolean isDeleteRecurseSkippable() {
|
||||
return root.isNodeDeleteRecurseSkippable();
|
||||
}
|
||||
|
||||
@@ -171,7 +172,7 @@ public class InheritInfo {
|
||||
/**
|
||||
* Return the children.
|
||||
*/
|
||||
public ArrayList<InheritInfo> getChildren() {
|
||||
public List<InheritInfo> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
@@ -188,7 +189,7 @@ public class InheritInfo {
|
||||
/**
|
||||
* Get the bean property additionally looking in the sub types.
|
||||
*/
|
||||
public BeanProperty findSubTypeProperty(String propertyName) {
|
||||
BeanProperty findSubTypeProperty(String propertyName) {
|
||||
|
||||
BeanProperty prop;
|
||||
|
||||
@@ -227,7 +228,7 @@ public class InheritInfo {
|
||||
/**
|
||||
* Return the associated InheritInfo for this discriminator value.
|
||||
*/
|
||||
public InheritInfo readType(String discValue) {
|
||||
InheritInfo readType(String discValue) {
|
||||
|
||||
if (discValue == null) {
|
||||
return null;
|
||||
@@ -371,7 +372,7 @@ public class InheritInfo {
|
||||
/**
|
||||
* Return the discriminator value for this node.
|
||||
*/
|
||||
public String getDiscriminatorStringValue() {
|
||||
String getDiscriminatorStringValue() {
|
||||
return discriminatorStringValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user