From 999d30af08b93e433538fc667de9be79490e4343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr> Date: Wed, 20 Jul 2005 13:20:58 +0000 Subject: [PATCH] - corrected some dynamic typechecking error --- src/fr/inrialpes/exmo/align/impl/BasicAlignment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java b/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java index bbe56109..6dc26537 100644 --- a/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java +++ b/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java @@ -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); -- GitLab