Permalink
Browse files

[ignore] reformat code

  • Loading branch information...
1 parent efd3aed commit 7b18eff937fc2a4945d81b3c271ee4c124aae493 @adamretter adamretter committed Jan 26, 2014
Showing with 11 additions and 10 deletions.
  1. +11 −10 src/org/exist/xmldb/LocalCollectionManagementService.java
@@ -465,10 +465,11 @@ public void copyResource(XmldbURI resourcePath, XmldbURI destinationPath, XmldbU
throws XMLDBException {
resourcePath = parent.getPathURI().resolveCollectionPath(resourcePath);
- if (destinationPath == null)
- {destinationPath = resourcePath.removeLastSegment();}
- else
- {destinationPath = parent.getPathURI().resolveCollectionPath(destinationPath);}
+ if(destinationPath == null) {
+ destinationPath = resourcePath.removeLastSegment();
+ } else {
+ destinationPath = parent.getPathURI().resolveCollectionPath(destinationPath);
+ }
final Subject preserveSubject = brokerPool.getSubject();
final TransactionManager transact = brokerPool.getTransactionManager();
@@ -493,9 +494,9 @@ public void copyResource(XmldbURI resourcePath, XmldbURI destinationPath, XmldbU
transact.abort(transaction);
throw new XMLDBException(ErrorCodes.NO_SUCH_COLLECTION, "Collection " + destinationPath + " not found");
}
- if (newName == null) {
- newName = resourcePath.lastSegment();
- }
+ if(newName == null) {
+ newName = resourcePath.lastSegment();
+ }
broker.copyResource(transaction, doc, destination, newName);
transact.commit(transaction);
} catch ( final EXistException e ) {
@@ -520,12 +521,12 @@ public void copyResource(XmldbURI resourcePath, XmldbURI destinationPath, XmldbU
}
}
- public void setCollection( Collection parent ) throws XMLDBException {
+ public void setCollection(Collection parent) throws XMLDBException {
this.parent = (LocalCollection) parent;
}
- public void setProperty( String property,
- String value ) {
+ public void setProperty(String property,
+ String value) {
}
@Override

0 comments on commit 7b18eff

Please sign in to comment.