}
}
- // Database fetch constructor
protected Document() {
+ // Database fetch constructor
}
// Internal constructor
public Document getPreviousVersion() {
// -------------------------------------
Relation previous = getFirstRelation(VersionsRelation.class);
- if (previous != null) {
- return (Document) previous.getTo();
- } else {
+ if (previous == null) {
return null;
+ } else {
+ return (Document) previous.getTo();
}
}