Skip to content

Commit

Permalink
Removing a Sonar critical warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Aug 22, 2013
1 parent d7d32e0 commit 059758f
Showing 1 changed file with 13 additions and 12 deletions.
Expand Up @@ -58,7 +58,7 @@

/**
* Service for creating and retrieving Datastreams without using the JCR API.
*
*
* @author cbeer
* @date Feb 11, 2013
*/
Expand Down Expand Up @@ -97,7 +97,7 @@ public Datastream createDatastream(final Session session, final String dsPath) t
}
/**
* Create a new Datastream node in the JCR store
*
*
* @param session the jcr session to use
* @param dsPath the absolute path to put the datastream
* @param contentType the mime-type for the requestBodyStream
Expand All @@ -118,7 +118,7 @@ public Node createDatastreamNode(final Session session,

/**
* Create a new Datastream node in the JCR store
*
*
* @param session the jcr session to use
* @param dsPath the absolute path to put the datastream
* @param contentType the mime-type for the requestBodyStream
Expand All @@ -142,7 +142,7 @@ public Node createDatastreamNode(final Session session,

/**
* Retrieve the JCR node for a Datastream by pid and dsid
*
*
* @param path
* @return
* @throws RepositoryException
Expand All @@ -157,7 +157,7 @@ public Node getDatastreamNode(final Session session, final String path)

/**
* Retrieve a Datastream instance by pid and dsid
*
*
* @param path jcr path to the datastream
* @return
* @throws RepositoryException
Expand All @@ -169,7 +169,7 @@ public Datastream getDatastream(final Session session, final String path)

/**
* Retrieve a Datastream instance by pid and dsid
*
*
* @param node datastream node
* @return
* @throws RepositoryException
Expand All @@ -180,7 +180,7 @@ public Datastream asDatastream(final Node node) throws RepositoryException {

/**
* Get the fixity results for the datastream as a RDF Dataset
*
*
* @param subjects
* @param datastream
* @return
Expand Down Expand Up @@ -209,7 +209,7 @@ public Dataset getFixityResultsModel(final GraphSubjects subjects,
/**
* Run the fixity check on the datastream and attempt to automatically
* correct failures if additional copies of the bitstream are available
*
*
* @param datastream
* @return
* @throws RepositoryException
Expand Down Expand Up @@ -280,7 +280,7 @@ public boolean apply(
/**
* Get the fixity results for this datastream's bitstream, and compare it
* against the given checksum and size.
*
*
* @param resource
* @param dsChecksum -the checksum and algorithm represented as a URI
* @param dsSize
Expand All @@ -298,7 +298,7 @@ public Collection<FixityResult> getFixity(final Node resource,

/**
* Set the low-level storage service (if Spring didn't wire it in)
*
*
* @param llStoreService
*/
public void setLlStoreService(final LowLevelStorageService llStoreService) {
Expand All @@ -308,7 +308,7 @@ public void setLlStoreService(final LowLevelStorageService llStoreService) {
/**
* Set the storage policy decision point (if Spring didn't wire it in for
* us)
*
*
* @param pdp
*/
public void setStoragePolicyDecisionPoint(final StoragePolicyDecisionPoint pdp) {
Expand All @@ -318,11 +318,12 @@ public void setStoragePolicyDecisionPoint(final StoragePolicyDecisionPoint pdp)
/**
* Get the Policy Decision Point for this service. Initialize it if Spring
* didn't wire it in for us.
*
*
* @return a PolicyDecisionPoint
*/
private StoragePolicyDecisionPoint getStoragePolicyDecisionPoint() {
if (storagePolicyDecisionPoint == null) {
logger.debug("Using new PolicyDecisionPoint.");
// storagePolicyDecisionPoint = new PolicyDecisionPoint();
}

Expand Down

0 comments on commit 059758f

Please sign in to comment.