Skip to content

Commit

Permalink
Improved code syntax for constructors to make more clear the use of J…
Browse files Browse the repository at this point in the history
…crTools
  • Loading branch information
ajs6f committed Oct 21, 2013
1 parent 1f7e8ce commit 0fe85ef
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -70,6 +70,7 @@ public class FedoraResource extends JcrTools implements FedoraJcrTypes {
* Construct a FedoraObject without a backing JCR Node
*/
public FedoraResource() {
super(false);
node = null;
this.properties = DEFAULT_PROPERTY_FACTORY;
}
Expand All @@ -79,7 +80,7 @@ public FedoraResource() {
* @param node an existing JCR node to treat as an fcrepo object
*/
public FedoraResource(final Node node) {
super(false);
this();
this.node = node;
}

Expand All @@ -90,9 +91,8 @@ public FedoraResource(final Node node) {
* @throws RepositoryException
*/
public FedoraResource(final Session session, final String path,
final String nodeType)
throws RepositoryException {
super(false);
final String nodeType) throws RepositoryException {
this();
this.node = findOrCreateNode(
session, path, NT_FOLDER, nodeType);

Expand Down

0 comments on commit 0fe85ef

Please sign in to comment.