From 04b3d9c1abff12d21c15270c3ebcb8dbc031bf42 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr>
Date: Fri, 26 Mar 2010 22:22:28 +0000
Subject: [PATCH] - suppressed superfluous cast

---
 .../inrialpes/exmo/ontowrap/jena25/JENAOntologyFactory.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/fr/inrialpes/exmo/ontowrap/jena25/JENAOntologyFactory.java b/src/fr/inrialpes/exmo/ontowrap/jena25/JENAOntologyFactory.java
index b5411f4c..5e396c23 100644
--- a/src/fr/inrialpes/exmo/ontowrap/jena25/JENAOntologyFactory.java
+++ b/src/fr/inrialpes/exmo/ontowrap/jena25/JENAOntologyFactory.java
@@ -59,7 +59,7 @@ public class JENAOntologyFactory extends OntologyFactory {
 	    // If no URI can be extracted from ontology, then we use the physical URI
 	    try {
 		try {
-		    onto.setURI(new URI(((Ontology)((OntModel)ontology).listOntologies().next()).getURI()));
+		    onto.setURI(new URI(((OntModel)ontology).listOntologies().next().getURI()));
 		} catch (NoSuchElementException nse) {
 		    // JE: not verysafe
 		    onto.setURI(new URI(((OntModel)ontology).getNsPrefixURI("")));
@@ -89,7 +89,7 @@ public class JENAOntologyFactory extends OntologyFactory {
 	    // to be checked : why several ontologies in a model ???
 	    // If no URI can be extracted from ontology, then we use the physical URI
 	    try {
-		onto.setURI(new URI(((Ontology)m.listOntologies().next()).getURI()));
+		onto.setURI(new URI(m.listOntologies().next().getURI()));
 	    } catch (NoSuchElementException nse) {
 		onto.setURI(new URI(m.getNsPrefixURI("")));
 		//onto.setFile(uri);
-- 
GitLab