From a082b613c33a086742433c1aa2a136e819e90e3b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr>
Date: Mon, 17 Nov 2014 14:31:42 +0000
Subject: [PATCH] - fixed unwanted hierarchy in test soures - fixed warning in
 tests

---
 .../inrialpes/exmo/align/test => }/Utils.java | 38 +++++++++++++------
 1 file changed, 27 insertions(+), 11 deletions(-)
 rename test/src/{fr/inrialpes/exmo/align/test => }/Utils.java (80%)

diff --git a/test/src/fr/inrialpes/exmo/align/test/Utils.java b/test/src/Utils.java
similarity index 80%
rename from test/src/fr/inrialpes/exmo/align/test/Utils.java
rename to test/src/Utils.java
index c8538002..2c1e9f53 100644
--- a/test/src/fr/inrialpes/exmo/align/test/Utils.java
+++ b/test/src/Utils.java
@@ -1,4 +1,27 @@
-package fr.inrialpes.exmo.align.test;
+/*
+ * $Id: READMETest.java 1985 2014-11-09 16:50:18Z euzenat $
+ *
+ * Copyright (C) INRIA, 2014
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Lesser General Public License for more details.
+ * 
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+ */
+
+
+import fr.inrialpes.exmo.align.impl.edoal.EDOALAlignment;
+import fr.inrialpes.exmo.align.parser.AlignmentParser;
+import fr.inrialpes.exmo.align.parser.RDFParser;
 
 import com.hp.hpl.jena.ontology.OntModelSpec;
 import com.hp.hpl.jena.query.Dataset;
@@ -7,9 +30,7 @@ import com.hp.hpl.jena.query.QuerySolution;
 import com.hp.hpl.jena.query.ResultSet;
 import com.hp.hpl.jena.rdf.model.Model;
 import com.hp.hpl.jena.rdf.model.ModelFactory;
-import fr.inrialpes.exmo.align.impl.edoal.EDOALAlignment;
-import fr.inrialpes.exmo.align.parser.AlignmentParser;
-import fr.inrialpes.exmo.align.parser.RDFParser;
+
 import java.io.FileInputStream;
 import java.io.InputStream;
 import java.util.Collection;
@@ -17,11 +38,6 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.TreeSet;
 
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
 /**
  *
  * @author Nicolas Guillouet <nicolas@meaningengines.com>
@@ -60,10 +76,10 @@ public class Utils {
      * @return
      */
     public static HashMap<String, Collection<String>> getResultValues(ResultSet resultSet) {
-        HashMap<String, Collection<String>> toReturn = new HashMap();
+        HashMap<String, Collection<String>> toReturn = new HashMap<String, Collection<String>>();
         List<String> varsNames = resultSet.getResultVars();
         for (String varName : varsNames) {
-            toReturn.put(varName, new TreeSet());
+            toReturn.put(varName, new TreeSet<String>());
         }
         while (resultSet.hasNext()) {
             QuerySolution querySolution = resultSet.nextSolution();
-- 
GitLab