Mentions légales du service

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

- corrected some dynamic typechecking error

parent 2a3129bb
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ public class BasicAlignment implements Alignment {
/** Cell methods **/
public Cell addAlignCell(Object ob1, Object ob2, String relation,
double measure) throws AlignmentException {
if ( !( ob1 instanceof OWLEntity && ob1 instanceof OWLEntity ) )
if ( !( ob1 instanceof OWLEntity && ob2 instanceof OWLEntity ) )
throw new AlignmentException("addAlignCell: arguments must be OWLEntities");
Cell cell = (Cell) new BasicCell((OWLEntity)ob1, (OWLEntity)ob2,
relation, measure);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment