Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c5748ee9 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- improved warning control

parent e75d3078
No related branches found
No related tags found
No related merge requests found
...@@ -404,11 +404,11 @@ public class ExtPREvaluator extends BasicEvaluator implements Evaluator { ...@@ -404,11 +404,11 @@ public class ExtPREvaluator extends BasicEvaluator implements Evaluator {
* This would require computing the transitive reduction of the superClass * This would require computing the transitive reduction of the superClass
* relation which is currently returned by HeavyLoadedOntology. * relation which is currently returned by HeavyLoadedOntology.
*/ */
@SuppressWarnings("unchecked")
public int isSuperClass( Object class1, Object class2, HeavyLoadedOntology<Object> ontology ) throws AlignmentException { public int isSuperClass( Object class1, Object class2, HeavyLoadedOntology<Object> ontology ) throws AlignmentException {
try { try {
URI uri1 = ontology.getEntityURI( class1 ); URI uri1 = ontology.getEntityURI( class1 );
Set<?> bufferedSuperClasses = null; Set<?> bufferedSuperClasses = null;
@SuppressWarnings("unchecked")
Set<Object> superclasses = (Set<Object>)ontology.getSuperClasses( class2, OntologyFactory.DIRECT, OntologyFactory.ANY, OntologyFactory.ANY ); Set<Object> superclasses = (Set<Object>)ontology.getSuperClasses( class2, OntologyFactory.DIRECT, OntologyFactory.ANY, OntologyFactory.ANY );
int level = 0; int level = 0;
int foundlevel = 0; int foundlevel = 0;
...@@ -444,6 +444,7 @@ public class ExtPREvaluator extends BasicEvaluator implements Evaluator { ...@@ -444,6 +444,7 @@ public class ExtPREvaluator extends BasicEvaluator implements Evaluator {
try { try {
URI uri1 = ontology.getEntityURI( prop1 ); URI uri1 = ontology.getEntityURI( prop1 );
Set<?> bufferedSuperProperties = null; Set<?> bufferedSuperProperties = null;
@SuppressWarnings("unchecked")
Set<Object> superproperties = (Set<Object>)ontology.getSuperProperties( prop2, OntologyFactory.DIRECT, OntologyFactory.ANY, OntologyFactory.ANY ); Set<Object> superproperties = (Set<Object>)ontology.getSuperProperties( prop2, OntologyFactory.DIRECT, OntologyFactory.ANY, OntologyFactory.ANY );
int level = 0; int level = 0;
int foundlevel = 0; int foundlevel = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment