Source:
public int compareTo(DataSpacesURI other) { if (this == other) { return 0; } if (other == null) { throw new NullPointerException(); } if (appId == null) { if (other.appId != null) { return -1; } return 0; } else { if (other.appId == null) { return 1; } final int cmp = appId.compareTo(other.appId); if (cmp != 0) { return cmp; } } if (spaceType == null) { if (other.spaceType != null) { return -1; } return 0; } else { if (other.spaceType == null) { return 1; } final int cmp = spaceType.compareTo(other.spaceType); if (cmp != 0) { return cmp; } } switch (spaceType) { case INPUT: case OUTPUT: if (name == null) { if (other.name != null) { return -1; } return 0; } else { if (other.name == null) { return 1; } final int cmp = name.compareTo(other.name); if (cmp != 0) { return cmp; } } break; case SCRATCH: if (runtimeId == null) { if (other.runtimeId != null) { return -1; } return 0; } else { if (other.runtimeId == null) { return 1; } final int cmp = runtimeId.compareTo(other.runtimeId); if (cmp != 0) { return cmp; } } if (nodeId == null) { if (other.nodeId != null) { return -1; } return 0; } else { if (other.nodeId == null) { return 1; } final int cmp = nodeId.compareTo(other.nodeId); if (cmp != 0) { return cmp; } } if (activeObjectId == null) { if (other.activeObjectId != null) { return -1; } return 0; } else { if (other.activeObjectId == null) { return 1; } final int cmp = activeObjectId.compareTo(other.activeObjectId); if (cmp != 0) { return cmp; } } break; } if (userPath == null) { if (other.userPath != null) { return -1; } return 0; } else { if (other.userPath == null) { return 1; } return userPath.compareTo(other.userPath); } }

Target:
public int compareTo(DataSpacesURI other) { if (this == other) { return 0; } if (other == null) { throw new NullPointerException(); } Integer compareAppIds = compareAppIds(other); if (compareAppIds != null) { return compareAppIds; } if (spaceType == null) { if (other.spaceType != null) { return -1; } return 0; } else { if (other.spaceType == null) { return 1; } final int cmp = spaceType.compareTo(other.spaceType); if (cmp != 0) { return cmp; } } switch (spaceType) { case INPUT: case OUTPUT: if (name == null) { if (other.name != null) { return -1; } return 0; } else { if (other.name == null) { return 1; } final int cmp = name.compareTo(other.name); if (cmp != 0) { return cmp; } } break; case SCRATCH: if (runtimeId == null) { if (other.runtimeId != null) { return -1; } return 0; } else { if (other.runtimeId == null) { return 1; } final int cmp = runtimeId.compareTo(other.runtimeId); if (cmp != 0) { return cmp; } } if (nodeId == null) { if (other.nodeId != null) { return -1; } return 0; } else { if (other.nodeId == null) { return 1; } final int cmp = nodeId.compareTo(other.nodeId); if (cmp != 0) { return cmp; } } if (activeObjectId == null) { if (other.activeObjectId != null) { return -1; } return 0; } else { if (other.activeObjectId == null) { return 1; } final int cmp = activeObjectId.compareTo(other.activeObjectId); if (cmp != 0) { return cmp; } } break; } if (userPath == null) { if (other.userPath != null) { return -1; } return 0; } else { if (other.userPath == null) { return 1; } return userPath.compareTo(other.userPath); } }