try {
@SuppressWarnings("unchecked")
Set<Issue> contexts = new HashSet<Issue>((List<Issue>)Functions.exec(graph, function, graph, resource2));
- if(DEBUG) System.err.println("Validator found: " + contexts.size() + " issues (" + contexts + ")");
+ if(DEBUG) LOGGER.info("Validator found: " + contexts.size() + " issues (" + contexts + ")");
return contexts;
} catch (DatabaseException e) {
LOGGER.error("Reading a constraint validator failed", e);
@Override
public Boolean perform(ReadGraph graph) throws DatabaseException {
- if(DEBUG) System.err.println("Running DependencyValidator for " + NameUtils.getSafeName(graph, resource) + " " + NameUtils.getSafeName(graph, resource3));
+ if(DEBUG) LOGGER.info("Running DependencyValidator for " + NameUtils.getSafeName(graph, resource) + " " + NameUtils.getSafeName(graph, resource3));
Set<Issue> existing = graph.syncRequest(new DependencyIssueDescriptions(resource3, resource), TransientCacheListener.<Set<Issue>>instance());
- if(DEBUG) System.err.println("Existing: " + existing.size() + " issues (" + existing + ")");
+ if(DEBUG) LOGGER.info("Existing: " + existing.size() + " issues (" + existing + ")");
// Removed resources do not have issues
if(!graph.hasStatement(resource)) {
- if(DEBUG) System.err.println("No statements");
+ if(DEBUG) LOGGER.info("No statements");
return existing.isEmpty();
}
Set<Issue> contexts = graph.syncRequest(new Contexts(resource3, resource), TransientCacheListener.<Set<Issue>>instance());
- if(DEBUG) System.err.println("Current: " + contexts.size() + " issues (" + contexts + ")");
+ if(DEBUG) LOGGER.info("Current: " + contexts.size() + " issues (" + contexts + ")");
return existing.equals(contexts);