From ecc1c05bb70f4d7eb9604ba7844e4f66907d68d3 Mon Sep 17 00:00:00 2001 From: bdc34 Date: Thu, 27 Jan 2011 23:43:25 +0000 Subject: [PATCH] Adding generics to Entity2LuceneDoc.java --- .../vitro/webapp/search/lucene/Entity2LuceneDoc.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/lucene/Entity2LuceneDoc.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/lucene/Entity2LuceneDoc.java index e898a4901..8ab9b4c0f 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/lucene/Entity2LuceneDoc.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/lucene/Entity2LuceneDoc.java @@ -251,20 +251,20 @@ public class Entity2LuceneDoc implements Obj2DocIface{ value+= " "+ getKeyterms(ent); - List dataPropertyStatements = ent.getDataPropertyStatements(); + List dataPropertyStatements = ent.getDataPropertyStatements(); if (dataPropertyStatements != null) { - Iterator dataPropertyStmtIter = dataPropertyStatements.iterator(); + Iterator dataPropertyStmtIter = dataPropertyStatements.iterator(); while (dataPropertyStmtIter.hasNext()) { - DataPropertyStatement dataPropertyStmt = (DataPropertyStatement) dataPropertyStmtIter.next(); + DataPropertyStatement dataPropertyStmt = dataPropertyStmtIter.next(); value+= " "+ ( ((t=dataPropertyStmt.getData()) == null)?"":t ); } } - List objectPropertyStatements = ent.getObjectPropertyStatements(); + List objectPropertyStatements = ent.getObjectPropertyStatements(); if (objectPropertyStatements != null) { - Iterator objectPropertyStmtIter = objectPropertyStatements.iterator(); + Iterator objectPropertyStmtIter = objectPropertyStatements.iterator(); while (objectPropertyStmtIter.hasNext()) { - ObjectPropertyStatement objectPropertyStmt = (ObjectPropertyStatement) objectPropertyStmtIter.next(); + ObjectPropertyStatement objectPropertyStmt = objectPropertyStmtIter.next(); if( "http://www.w3.org/2002/07/owl#differentFrom".equals(objectPropertyStmt.getPropertyURI()) ) continue; try {