Skip to content

Commit

Permalink
Cleaned up three language warnings in kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Aug 22, 2013
1 parent 00cc96e commit 156c73c
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 120 deletions.
Expand Up @@ -17,6 +17,7 @@
package org.fcrepo.kernel.utils;

import static com.google.common.base.Throwables.propagate;
import static org.fcrepo.kernel.RdfLexicon.COULD_NOT_STORE_PROPERTY;
import static org.slf4j.LoggerFactory.getLogger;

import javax.jcr.NamespaceException;
Expand Down Expand Up @@ -60,14 +61,14 @@ public class JcrPropertyStatementListener extends StatementListener {
* @throws RepositoryException
*/
public static JcrPropertyStatementListener getListener(
final GraphSubjects subjects, final Session session, Model problemModel)
final GraphSubjects subjects, final Session session, final Model problemModel)
throws RepositoryException {
return new JcrPropertyStatementListener(subjects, session, problemModel);
}

/**
* Construct a statement listener within the given session
*
*
* @param subjects
* @param session
* @throws RepositoryException
Expand All @@ -82,7 +83,7 @@ private JcrPropertyStatementListener(final GraphSubjects subjects,

/**
* When a statement is added to the graph, serialize it to a JCR property
*
*
* @param s
*/
@Override
Expand Down Expand Up @@ -121,7 +122,7 @@ public void addedStatement(final Statement s) {
if (subjectNode.canAddMixin(mixinName)) {
subjectNode.addMixin(mixinName);
} else {
problems.add(subject, RdfLexicon.COULD_NOT_STORE_PROPERTY, s.getPredicate().getURI());
problems.add(subject, COULD_NOT_STORE_PROPERTY, s.getPredicate().getURI());
}

return;
Expand Down Expand Up @@ -154,7 +155,7 @@ public void addedStatement(final Statement s) {

/**
* When a statement is removed, remove it from the JCR properties
*
*
* @param s
*/
@Override
Expand Down Expand Up @@ -236,14 +237,11 @@ private boolean validateModificationsForPropertyName(
/**
* Get a list of any problems from trying to apply the statement changes to
* the node's properties
*
*
* @return
*/
public Model getProblems() {
return problems;
}

private Session getSession() {
return this.session;
}
}

0 comments on commit 156c73c

Please sign in to comment.