Skip to content
Permalink
Browse files

Minor code cleanup, reducing compiler warnings

  • Loading branch information...
ajs6f committed Oct 8, 2013
1 parent 5f1f093 commit 08f495be353cfe2786a37c8840edf85094c0a50e
Showing with 230 additions and 279 deletions.
  1. +7 −7 fcrepo-http-api/src/main/java/org/fcrepo/http/api/FedoraContent.java
  2. +2 −2 fcrepo-http-api/src/main/java/org/fcrepo/http/api/FedoraDatastreams.java
  3. +1 −1 fcrepo-http-api/src/main/java/org/fcrepo/http/api/FedoraExport.java
  4. +7 −7 fcrepo-http-api/src/main/java/org/fcrepo/http/api/FedoraFieldSearch.java
  5. +1 −1 fcrepo-http-api/src/main/java/org/fcrepo/http/api/FedoraFixity.java
  6. +1 −1 fcrepo-http-api/src/main/java/org/fcrepo/http/api/FedoraIdentifiers.java
  7. +1 −1 fcrepo-http-api/src/main/java/org/fcrepo/http/api/FedoraImport.java
  8. +19 −22 fcrepo-http-api/src/main/java/org/fcrepo/http/api/FedoraNodes.java
  9. +1 −1 fcrepo-http-api/src/main/java/org/fcrepo/http/api/FedoraVersions.java
  10. +3 −3 fcrepo-http-api/src/main/java/org/fcrepo/http/api/repository/FedoraRepositoriesProperties.java
  11. +14 −12 fcrepo-http-api/src/main/java/org/fcrepo/http/api/repository/FedoraRepositoryBackup.java
  12. +16 −15 fcrepo-http-api/src/main/java/org/fcrepo/http/api/repository/FedoraRepositoryRestore.java
  13. +22 −22 fcrepo-http-api/src/main/java/org/fcrepo/http/api/repository/FedoraRepositoryWorkspaces.java
  14. +4 −4 fcrepo-http-api/src/main/java/org/fcrepo/http/api/url/HttpApiResources.java
  15. +0 −1 fcrepo-http-api/src/test/java/org/fcrepo/http/api/FedoraContentTest.java
  16. +0 −1 fcrepo-http-api/src/test/java/org/fcrepo/http/api/FedoraDatastreamsTest.java
  17. +2 −3 fcrepo-http-api/src/test/java/org/fcrepo/http/api/FedoraExportTest.java
  18. +0 −1 fcrepo-http-api/src/test/java/org/fcrepo/http/api/FedoraFieldSearchTest.java
  19. +0 −1 fcrepo-http-api/src/test/java/org/fcrepo/http/api/FedoraFixityTest.java
  20. +1 −1 fcrepo-http-api/src/test/java/org/fcrepo/http/api/FedoraIdentifiersTest.java
  21. +0 −1 fcrepo-http-api/src/test/java/org/fcrepo/http/api/FedoraImportTest.java
  22. +1 −3 fcrepo-http-api/src/test/java/org/fcrepo/http/api/FedoraNodesTest.java
  23. +0 −1 fcrepo-http-api/src/test/java/org/fcrepo/http/api/FedoraSitemapTest.java
  24. +2 −3 fcrepo-http-api/src/test/java/org/fcrepo/http/api/FedoraVersionsTest.java
  25. +0 −1 fcrepo-http-api/src/test/java/org/fcrepo/http/api/repository/FedoraRepositoriesPropertiesTest.java
  26. +13 −14 fcrepo-http-api/src/test/java/org/fcrepo/http/api/repository/FedoraRepositoryBackupTest.java
  27. +15 −15 fcrepo-http-api/src/test/java/org/fcrepo/http/api/repository/FedoraRepositoryRestoreTest.java
  28. +13 −12 fcrepo-http-api/src/test/java/org/fcrepo/http/api/repository/FedoraRepositoryWorkspacesTest.java
  29. +4 −5 fcrepo-http-api/src/test/java/org/fcrepo/http/api/url/HttpApiResourcesTest.java
  30. +5 −4 fcrepo-http-api/src/test/java/org/fcrepo/integration/http/api/FedoraBackupIT.java
  31. +1 −0 fcrepo-http-api/src/test/java/org/fcrepo/integration/http/api/FedoraContentIT.java
  32. +1 −1 fcrepo-http-api/src/test/java/org/fcrepo/integration/http/api/FedoraFieldSearchIT.java
  33. +1 −1 fcrepo-http-api/src/test/java/org/fcrepo/integration/http/api/FedoraFixityIT.java
  34. +1 −1 fcrepo-http-api/src/test/java/org/fcrepo/integration/http/api/FedoraIdentifiersIT.java
  35. +1 −1 fcrepo-http-api/src/test/java/org/fcrepo/integration/http/api/FedoraNamespacesIT.java
  36. +4 −4 fcrepo-http-api/src/test/java/org/fcrepo/integration/http/api/FedoraNodesIT.java
  37. +1 −1 fcrepo-http-api/src/test/java/org/fcrepo/integration/http/api/FedoraTransactionsIT.java
  38. +1 −0 fcrepo-http-api/src/test/java/org/fcrepo/integration/http/api/FedoraWorkspacesIT.java
  39. +16 −15 fcrepo-http-api/src/test/java/org/fcrepo/integration/http/api/ldp/LdprIT.java
  40. +3 −3 fcrepo-kernel/src/main/java/org/fcrepo/kernel/Datastream.java
  41. +3 −3 fcrepo-kernel/src/main/java/org/fcrepo/kernel/FedoraResource.java
  42. +2 −1 fcrepo-kernel/src/main/java/org/fcrepo/kernel/observer/SimpleObserver.java
  43. +1 −1 fcrepo-kernel/src/main/java/org/fcrepo/kernel/rdf/impl/DefaultGraphSubjects.java
  44. +1 −1 fcrepo-kernel/src/main/java/org/fcrepo/kernel/services/DatastreamService.java
  45. +1 −1 fcrepo-kernel/src/main/java/org/fcrepo/kernel/services/NodeService.java
  46. +1 −1 fcrepo-kernel/src/main/java/org/fcrepo/kernel/services/ObjectService.java
  47. +2 −2 fcrepo-kernel/src/main/java/org/fcrepo/kernel/services/RepositoryService.java
  48. +2 −2 fcrepo-kernel/src/main/java/org/fcrepo/kernel/services/policy/StoragePolicyDecisionPoint.java
  49. +1 −1 fcrepo-kernel/src/main/java/org/fcrepo/kernel/utils/JcrPropertyStatementListener.java
  50. +4 −4 fcrepo-kernel/src/main/java/org/fcrepo/kernel/utils/JcrRdfTools.java
  51. +1 −1 fcrepo-kernel/src/test/java/org/fcrepo/integration/kernel/observer/SimpleObserverIT.java
  52. +1 −1 fcrepo-kernel/src/test/java/org/fcrepo/integration/kernel/services/ObjectServiceIT.java
  53. +1 −3 fcrepo-kernel/src/test/java/org/fcrepo/kernel/DatastreamTest.java
  54. +1 −2 fcrepo-kernel/src/test/java/org/fcrepo/kernel/FedoraObjectTest.java
  55. +2 −2 fcrepo-kernel/src/test/java/org/fcrepo/kernel/FedoraResourceTest.java
  56. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/TransactionTest.java
  57. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/TxAwareSessionTest.java
  58. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/identifiers/UUIDPathMinterTest.java
  59. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/identifiers/UUIDPidMinterTest.java
  60. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/observer/DefaultFilterTest.java
  61. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/observer/FedoraEventTest.java
  62. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/observer/NOOPFilterTest.java
  63. +0 −2 fcrepo-kernel/src/test/java/org/fcrepo/kernel/observer/SimpleObserverTest.java
  64. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/rdf/SerializationUtilsTest.java
  65. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/rdf/impl/DefaultGraphSubjectsTest.java
  66. +1 −4 fcrepo-kernel/src/test/java/org/fcrepo/kernel/services/DatastreamServiceTest.java
  67. +0 −2 fcrepo-kernel/src/test/java/org/fcrepo/kernel/services/LowLevelStorageServiceTest.java
  68. +0 −2 fcrepo-kernel/src/test/java/org/fcrepo/kernel/services/NodeServiceTest.java
  69. +0 −2 fcrepo-kernel/src/test/java/org/fcrepo/kernel/services/ObjectServiceTest.java
  70. +1 −2 fcrepo-kernel/src/test/java/org/fcrepo/kernel/services/RepositoryServiceTest.java
  71. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/services/TransactionServiceTest.java
  72. +0 −2 fcrepo-kernel/src/test/java/org/fcrepo/kernel/services/functions/CacheLocalTransformTest.java
  73. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/services/functions/CheckCacheEntryFixityTest.java
  74. +1 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/services/functions/GetBinaryKeyTest.java
  75. +1 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/services/functions/GetCacheStoreTest.java
  76. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/services/functions/GetClusterConfigurationTest.java
  77. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/EventIteratorTest.java
  78. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/FedoraTypesUtilsTest.java
  79. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/FixityInputStreamTest.java
  80. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/FixityResultTest.java
  81. +6 −9 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/JcrPropertyStatementListenerTest.java
  82. +2 −2 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/JcrRdfToolsTest.java
  83. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/NamespaceChangedStatementListenerTest.java
  84. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/NodeIteratortest.java
  85. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/NodePropertiesToolsTest.java
  86. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/PropertyIteratorTest.java
  87. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/TestHelpers.java
  88. +0 −1 fcrepo-kernel/src/test/java/org/fcrepo/kernel/utils/impl/ChainingCacheStoreEntryTest.java
  89. +5 −5 fcrepo-transform/src/main/java/org/fcrepo/transform/TransformationFactory.java
  90. +4 −4 fcrepo-transform/src/main/java/org/fcrepo/transform/http/FedoraTransform.java
@@ -19,6 +19,7 @@
import static javax.ws.rs.core.MediaType.APPLICATION_OCTET_STREAM_TYPE;
import static javax.ws.rs.core.Response.created;
import static javax.ws.rs.core.Response.noContent;
import static org.modeshape.jcr.api.JcrConstants.JCR_CONTENT;
import static org.slf4j.LoggerFactory.getLogger;

import java.io.IOException;
@@ -83,7 +84,7 @@
/**
* Create an anonymous DS with a newly minted name and content from request
* body
*
*
* @param pathList
* @throws RepositoryException
*/
@@ -108,7 +109,7 @@ public Response create(@PathParam("path")
}

logger.debug("create Datastream {}", path);
final Throwable exception = null;

try {
final URI checksumURI;

@@ -130,9 +131,8 @@ public Response create(@PathParam("path")
session.save();
return created(
new URI(subjects.getGraphSubject(
datastreamNode
.getNode(JcrConstants.JCR_CONTENT))
.getURI())).build();
datastreamNode.getNode(JCR_CONTENT)).getURI()))
.build();

} finally {
session.logout();
@@ -141,7 +141,7 @@ public Response create(@PathParam("path")

/**
* Modify an existing datastream's content
*
*
* @param pathList
* @param requestContentType Content-Type header
* @param requestBodyStream Binary blob
@@ -212,7 +212,7 @@ public Response modifyContent(@PathParam("path")

/**
* Get the binary content of a datastream
*
*
* @param pathList
* @return Binary blob
* @throws RepositoryException
@@ -52,10 +52,10 @@
import javax.ws.rs.core.Response;

import org.fcrepo.http.commons.AbstractResource;
import org.fcrepo.kernel.Datastream;
import org.fcrepo.http.commons.api.rdf.HttpGraphSubjects;
import org.fcrepo.kernel.exception.InvalidChecksumException;
import org.fcrepo.http.commons.session.InjectedSession;
import org.fcrepo.kernel.Datastream;
import org.fcrepo.kernel.exception.InvalidChecksumException;
import org.fcrepo.kernel.utils.ContentDigest;
import org.slf4j.Logger;
import org.springframework.context.annotation.Scope;
@@ -35,9 +35,9 @@
import javax.ws.rs.core.StreamingOutput;

import org.fcrepo.http.commons.AbstractResource;
import org.fcrepo.http.commons.session.InjectedSession;
import org.fcrepo.serialization.FedoraObjectSerializer;
import org.fcrepo.serialization.SerializerUtil;
import org.fcrepo.http.commons.session.InjectedSession;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
@@ -21,6 +21,13 @@
import static javax.ws.rs.core.MediaType.TEXT_HTML;
import static javax.ws.rs.core.Response.status;
import static javax.ws.rs.core.Response.Status.BAD_REQUEST;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3_ALT1;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3_ALT2;
import static org.fcrepo.http.commons.domain.RDFMediaType.NTRIPLES;
import static org.fcrepo.http.commons.domain.RDFMediaType.RDF_JSON;
import static org.fcrepo.http.commons.domain.RDFMediaType.RDF_XML;
import static org.fcrepo.http.commons.domain.RDFMediaType.TURTLE;
import static org.fcrepo.kernel.RdfLexicon.FIRST_PAGE;
import static org.fcrepo.kernel.RdfLexicon.NEXT_PAGE;
import static org.fcrepo.kernel.RdfLexicon.PAGE;
@@ -30,13 +37,6 @@
import static org.fcrepo.kernel.RdfLexicon.SEARCH_OFFSET;
import static org.fcrepo.kernel.RdfLexicon.SEARCH_PAGE;
import static org.fcrepo.kernel.RdfLexicon.SEARCH_TERMS;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3_ALT1;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3_ALT2;
import static org.fcrepo.http.commons.domain.RDFMediaType.NTRIPLES;
import static org.fcrepo.http.commons.domain.RDFMediaType.RDF_JSON;
import static org.fcrepo.http.commons.domain.RDFMediaType.RDF_XML;
import static org.fcrepo.http.commons.domain.RDFMediaType.TURTLE;
import static org.slf4j.LoggerFactory.getLogger;

import javax.jcr.RepositoryException;
@@ -39,9 +39,9 @@
import javax.ws.rs.core.UriInfo;

import org.fcrepo.http.commons.AbstractResource;
import org.fcrepo.kernel.Datastream;
import org.fcrepo.http.commons.api.rdf.HttpGraphSubjects;
import org.fcrepo.http.commons.session.InjectedSession;
import org.fcrepo.kernel.Datastream;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@@ -24,14 +24,14 @@
import static com.hp.hpl.jena.rdf.model.ResourceFactory.createResource;
import static com.hp.hpl.jena.update.GraphStoreFactory.create;
import static javax.ws.rs.core.MediaType.TEXT_HTML;
import static org.fcrepo.kernel.RdfLexicon.HAS_MEMBER_OF_RESULT;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3_ALT1;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3_ALT2;
import static org.fcrepo.http.commons.domain.RDFMediaType.NTRIPLES;
import static org.fcrepo.http.commons.domain.RDFMediaType.RDF_JSON;
import static org.fcrepo.http.commons.domain.RDFMediaType.RDF_XML;
import static org.fcrepo.http.commons.domain.RDFMediaType.TURTLE;
import static org.fcrepo.kernel.RdfLexicon.HAS_MEMBER_OF_RESULT;

import java.util.Collection;
import java.util.List;
@@ -37,9 +37,9 @@

import org.fcrepo.http.commons.AbstractResource;
import org.fcrepo.http.commons.api.rdf.HttpGraphSubjects;
import org.fcrepo.http.commons.session.InjectedSession;
import org.fcrepo.kernel.exception.InvalidChecksumException;
import org.fcrepo.serialization.SerializerUtil;
import org.fcrepo.http.commons.session.InjectedSession;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
@@ -29,16 +29,16 @@
import static org.apache.http.HttpStatus.SC_NO_CONTENT;
import static org.apache.jena.riot.WebContent.contentTypeSPARQLUpdate;
import static org.apache.jena.riot.WebContent.contentTypeToLang;
import static org.fcrepo.kernel.RdfLexicon.FIRST_PAGE;
import static org.fcrepo.kernel.RdfLexicon.HAS_CHILD_COUNT;
import static org.fcrepo.kernel.RdfLexicon.NEXT_PAGE;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3_ALT1;
import static org.fcrepo.http.commons.domain.RDFMediaType.N3_ALT2;
import static org.fcrepo.http.commons.domain.RDFMediaType.NTRIPLES;
import static org.fcrepo.http.commons.domain.RDFMediaType.RDF_JSON;
import static org.fcrepo.http.commons.domain.RDFMediaType.RDF_XML;
import static org.fcrepo.http.commons.domain.RDFMediaType.TURTLE;
import static org.fcrepo.kernel.RdfLexicon.FIRST_PAGE;
import static org.fcrepo.kernel.RdfLexicon.HAS_CHILD_COUNT;
import static org.fcrepo.kernel.RdfLexicon.NEXT_PAGE;
import static org.fcrepo.kernel.rdf.GraphProperties.INLINED_RESOURCES_MODEL;
import static org.fcrepo.kernel.rdf.GraphProperties.PROBLEMS_MODEL_NAME;
import static org.slf4j.LoggerFactory.getLogger;
@@ -50,7 +50,6 @@
import java.util.Date;
import java.util.List;

import javax.jcr.Node;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
import javax.servlet.http.HttpServletResponse;
@@ -76,19 +75,17 @@
import javax.ws.rs.core.Response.ResponseBuilder;
import javax.ws.rs.core.UriInfo;

import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.rdf.model.Resource;
import org.apache.commons.io.IOUtils;
import org.apache.jena.riot.Lang;
import org.apache.jena.riot.WebContent;
import org.fcrepo.http.commons.AbstractResource;
import org.fcrepo.kernel.Datastream;
import org.fcrepo.kernel.FedoraResource;
import org.fcrepo.http.commons.api.rdf.HttpGraphSubjects;
import org.fcrepo.kernel.exception.InvalidChecksumException;
import org.fcrepo.http.commons.domain.PATCH;
import org.fcrepo.http.commons.session.InjectedSession;
import org.fcrepo.jcr.FedoraJcrTypes;
import org.fcrepo.kernel.Datastream;
import org.fcrepo.kernel.FedoraResource;
import org.fcrepo.kernel.exception.InvalidChecksumException;
import org.modeshape.jcr.api.JcrConstants;
import org.slf4j.Logger;
import org.springframework.context.annotation.Scope;
@@ -97,6 +94,8 @@
import com.codahale.metrics.annotation.Timed;
import com.hp.hpl.jena.query.Dataset;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.rdf.model.Resource;

/**
* CRUD operations on Fedora Nodes
@@ -113,7 +112,7 @@

/**
* Retrieve the node profile
*
*
* @param pathList
* @param offset with limit, control the pagination window of details for
* child nodes
@@ -133,7 +132,7 @@ public Dataset describe(@PathParam("path") final List<PathSegment> pathList,
@QueryParam("limit") @DefaultValue("-1") final int limit,
@QueryParam("non-member-properties") final String nonMemberProperties,
@Context final Request request,
@Context HttpServletResponse servletResponse,
@Context final HttpServletResponse servletResponse,
@Context final UriInfo uriInfo) throws RepositoryException, IOException {
final String path = toPath(pathList);
logger.trace("Getting profile for {}", path);
@@ -179,7 +178,7 @@ public Dataset describe(@PathParam("path") final List<PathSegment> pathList,
.contains(subjects.getGraphSubject(resource.getNode()),
HAS_CHILD_COUNT)) {

Model requestModel = ModelFactory.createDefaultModel();
final Model requestModel = ModelFactory.createDefaultModel();

final long childCount = treeModel
.listObjectsOfProperty(subjects.getGraphSubject(resource.getNode()), HAS_CHILD_COUNT)
@@ -231,7 +230,7 @@ public Dataset describe(@PathParam("path") final List<PathSegment> pathList,

/**
* Update an object using SPARQL-UPDATE
*
*
* @param pathList
* @return 201
* @throws RepositoryException
@@ -275,10 +274,10 @@ public Response updateSparql(@PathParam("path")
throw new WebApplicationException(builder.build());
}

Dataset properties = resource.updatePropertiesDataset(new HttpGraphSubjects(
final Dataset properties = resource.updatePropertiesDataset(new HttpGraphSubjects(
session, FedoraNodes.class, uriInfo), IOUtils
.toString(requestBodyStream));
Model problems = properties.getNamedModel(PROBLEMS_MODEL_NAME);
final Model problems = properties.getNamedModel(PROBLEMS_MODEL_NAME);
if (problems.size() > 0) {
logger.info(
"Found these problems updating the properties for {}: {}",
@@ -369,7 +368,7 @@ public Response createOrReplaceObjectRdf(

/**
* Creates a new object.
*
*
* @param pathList
* @return 201
* @throws RepositoryException
@@ -487,11 +486,9 @@ public Response createObject(@PathParam("path")
result.replacePropertiesDataset(subjects, inputModel);
} else if (result instanceof Datastream) {

final Node node =
datastreamService.createDatastreamNode(session, newObjectPath,
contentTypeString, requestBodyStream,
checksumURI);

datastreamService.createDatastreamNode(session,
newObjectPath, contentTypeString,
requestBodyStream, checksumURI);

}
}
@@ -518,7 +515,7 @@ public Response createObject(@PathParam("path")

/**
* Deletes an object.
*
*
* @param path
* @return
* @throws RepositoryException
@@ -47,10 +47,10 @@
import javax.ws.rs.core.Variant;

import org.fcrepo.http.commons.AbstractResource;
import org.fcrepo.kernel.FedoraResource;
import org.fcrepo.http.commons.api.rdf.HttpGraphSubjects;
import org.fcrepo.http.commons.responses.GraphStoreStreamingOutput;
import org.fcrepo.http.commons.session.InjectedSession;
import org.fcrepo.kernel.FedoraResource;
import org.slf4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@@ -33,12 +33,12 @@

import org.apache.commons.io.IOUtils;
import org.apache.jena.riot.WebContent;
import org.fcrepo.http.commons.AbstractResource;
import org.fcrepo.kernel.FedoraResource;
import org.fcrepo.http.api.FedoraNodes;
import org.fcrepo.http.commons.AbstractResource;
import org.fcrepo.http.commons.api.rdf.HttpGraphSubjects;
import org.fcrepo.kernel.rdf.GraphProperties;
import org.fcrepo.http.commons.session.InjectedSession;
import org.fcrepo.kernel.FedoraResource;
import org.fcrepo.kernel.rdf.GraphProperties;
import org.slf4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@@ -15,7 +15,19 @@
*/
package org.fcrepo.http.api.repository;

import com.google.common.io.Files;
import static org.slf4j.LoggerFactory.getLogger;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

import javax.jcr.RepositoryException;
import javax.jcr.Session;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;

import org.apache.commons.io.IOUtils;
import org.fcrepo.http.commons.AbstractResource;
import org.fcrepo.http.commons.session.InjectedSession;
@@ -25,17 +37,7 @@
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.jcr.RepositoryException;
import javax.jcr.Session;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;

import static org.slf4j.LoggerFactory.getLogger;
import com.google.common.io.Files;

@Component
@Scope("prototype")
Oops, something went wrong.

0 comments on commit 08f495b

Please sign in to comment.
You can’t perform that action at this time.