Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7b6ccee6 authored by Jérôme David's avatar Jérôme David
Browse files

use equals instead of == for comparing Uris

parent 1e30449d
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ import fr.inrialpes.exmo.ontowrap.OntowrapException;
* In version 3.0 this class is virtually abstract.
* But it cannot be declared abstract because it uses its own constructor.
*
* @author Jrme Euzenat, David Loup, Raphal Troncy
* @author J�r�me Euzenat, David Loup, Raphal Troncy
* @version $Id$
*/
......@@ -550,9 +550,9 @@ public class BasicAlignment implements Alignment {
*/
public Alignment meet(Alignment align) throws AlignmentException {
// Could also test: onto1 == getOntologyObject1();
if ( onto1.getURI() != align.getOntology1URI() )
if ( ! onto1.getURI().equals(align.getOntology1URI()) )
throw new AlignmentException("Can only meet alignments with same ontologies");
if ( onto2.getURI() != align.getOntology2URI() )
if ( ! onto2.getURI().equals(align.getOntology2URI()) )
throw new AlignmentException("Can only meet alignments with same ontologies");
BasicAlignment result = createNewAlignment( onto1, onto2 );
for ( Cell c1 : this ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment