Refactor tidy InheritInfo - no effective change

This commit is contained in:
rob bygrave
2019-06-30 21:53:59 +12:00
parent 8ffc9ede85
commit d49a7c415f
@@ -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;
}