Skip to content

Commit

Permalink
Cleanup for Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Aug 2, 2013
1 parent a1c245c commit 63e95b7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 2 additions & 3 deletions fcrepo-kernel/src/main/java/org/fcrepo/TxAwareSession.java
Expand Up @@ -45,7 +45,7 @@ public TxAwareSession(final Session session, final String txID) {

/**
* Wrap a JCR session with this dynamic proxy
*
*
* @param session a JCR session
* @param txId the transaction identifier
* @return a wrapped JCR session
Expand All @@ -58,8 +58,7 @@ public static Session newInstance(final Session session, final String txId) {

@Override
public Object invoke(final Object proxy, final Method method,
final Object[] args) throws ReflectiveOperationException,
IllegalArgumentException {
final Object[] args) throws ReflectiveOperationException {
if (method.getName().equals("logout") ||
method.getName().equals("save")) {
return null;
Expand Down
Expand Up @@ -16,6 +16,8 @@

package org.fcrepo.rdf;

import static com.hp.hpl.jena.sparql.util.Symbol.create;

import javax.jcr.Node;
import javax.jcr.RepositoryException;

Expand All @@ -25,10 +27,11 @@

public interface GraphProperties {

public static final Symbol URI_SYMBOL = Symbol.create("uri");
public static final Symbol INLINED_RESOURCES_MODEL = Symbol.create("inlined-resources-model");
Symbol URI_SYMBOL = create("uri");

Symbol INLINED_RESOURCES_MODEL = create("inlined-resources-model");

public static final String PROBLEMS_MODEL_NAME = "problems";
String PROBLEMS_MODEL_NAME = "problems";

/**
* Return the name of the model this property factory will insert
Expand Down
Expand Up @@ -42,6 +42,8 @@ public class StoreChunkOutputStream extends OutputStream {
// 1 MB
public static final int CHUNKSIZE = 1024 * 1024 * 1;

public static final int DEFAULTCHUCK = 1024;

protected final CacheStore blobCache;

protected final String keyPrefix;
Expand All @@ -66,7 +68,7 @@ public StoreChunkOutputStream(final CacheStore blobCache,
logger = Logger.getLogger(getClass());
this.blobCache = blobCache;
this.keyPrefix = keyPrefix;
chunkBuffer = new ByteArrayOutputStream(1024);
chunkBuffer = new ByteArrayOutputStream(DEFAULTCHUCK);
}

/**
Expand Down

0 comments on commit 63e95b7

Please sign in to comment.