From f405cbaad902c5d75a61cada94c32857203e2289 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr>
Date: Fri, 31 Jan 2014 13:19:44 +0000
Subject: [PATCH] - minor typing tweaks

---
 src/fr/inrialpes/exmo/align/impl/BasicAlignment.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java b/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java
index 1b102612..30b1e8d6 100644
--- a/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java
+++ b/src/fr/inrialpes/exmo/align/impl/BasicAlignment.java
@@ -1,7 +1,7 @@
 /*
  * $Id$
  *
- * Copyright (C) INRIA, 2003-2011, 2013
+ * Copyright (C) INRIA, 2003-2011, 2013-2014
  * Copyright (C) CNR Pisa, 2005
  *
  * This program is free software; you can redistribute it and/or modify
@@ -287,21 +287,21 @@ public class BasicAlignment implements Alignment {
 	Set<Cell> s1 = hash1.get(c.getObject1());
 	if ( s1 != null ) {
 	    // I must check that there is no one here
-	    for (Iterator i = s1.iterator(); !found && i.hasNext(); ) {
-		if ( c.equals((BasicCell)i.next()) ) found = true;
+	    for ( Iterator<Cell> i = s1.iterator(); !found && i.hasNext(); ) {
+		if ( c.equals( i.next() ) ) found = true;
 	    }
 	    if (!found) s1.add( c );
+	    found = false;
 	} else {
 	    s1 = new HashSet<Cell>();
 	    s1.add( c );
 	    hash1.put(c.getObject1(),s1);
 	}
-	found = false;
 	Set<Cell> s2 = hash2.get(c.getObject2());
 	if( s2 != null ){
 	    // I must check that there is no one here
-	    for (Iterator i=s2.iterator(); !found && i.hasNext(); ) {
-		if ( c.equals((BasicCell)i.next()) ) found = true;
+	    for ( Iterator<Cell> i=s2.iterator(); !found && i.hasNext(); ) {
+		if ( c.equals( i.next() ) ) found = true;
 	    }
 	    if (!found)	s2.add( c );
 	} else {
-- 
GitLab