allSimilarItemIDs.add(rs.getLong(1));
allSimilarItemIDs.add(rs.getLong(2));
}
} catch (SQLException sqle) {
log.warn("Exception while retrieving all similar itemIDs", sqle);
throw new TasteException(sqle);
} finally {
IOUtils.quietClose(rs, stmt, conn);
}
allSimilarItemIDs.remove(itemID);
return allSimilarItemIDs.toArray();