Skip to content

Commit

Permalink
continue using import static instead of FedoraObjects.*
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Feb 8, 2013
1 parent c7ae1d9 commit 347739b
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -7,6 +7,7 @@
import static javax.ws.rs.core.Response.created;
import static javax.ws.rs.core.Response.notAcceptable;
import static javax.ws.rs.core.Response.ok;
import static org.fcrepo.api.legacy.FedoraObjects.getObjectSize;
import static org.fcrepo.jaxb.responses.DatastreamProfile.DatastreamStates.A;
import static org.modeshape.jcr.api.JcrConstants.JCR_CONTENT;
import static org.modeshape.jcr.api.JcrConstants.JCR_DATA;
Expand Down Expand Up @@ -191,7 +192,7 @@ private URI addDatastreamNode(final String pid, final String dsPath,
final MediaType contentType, final InputStream requestBodyStream,
final Session session) throws RepositoryException, IOException {

Long oldObjectSize = FedoraObjects.getObjectSize(session.getNode("/objects/" + pid));
Long oldObjectSize = getObjectSize(session.getNode("/objects/" + pid));
logger.debug("Attempting to add datastream node at path: " + dsPath);
Boolean created = false;
if (!session.nodeExists(dsPath)) {
Expand Down Expand Up @@ -246,7 +247,7 @@ private URI addDatastreamNode(final String pid, final String dsPath,
* properties which contribute to the footprint of this resource
*/
updateRepositorySize(
FedoraObjects.getObjectSize(session.getNode("/objects/" + pid))
getObjectSize(session.getNode("/objects/" + pid))
- oldObjectSize, session);
// now we save again to persist the repo size
session.save();
Expand Down

0 comments on commit 347739b

Please sign in to comment.