Author: fdesbois Date: 2010-01-07 11:38:08 +0100 (Thu, 07 Jan 2010) New Revision: 1754 Modified: trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaQuery.java Log: remove old comment Modified: trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaQuery.java =================================================================== --- trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaQuery.java 2010-01-07 10:37:20 UTC (rev 1753) +++ trunk/topia-persistence/src/main/java/org/nuiton/topia/framework/TopiaQuery.java 2010-01-07 10:38:08 UTC (rev 1754) @@ -717,14 +717,6 @@ } List<E> results = new ArrayList<E>(); for (Object o : res) { - // FIXME-FD20090106 How to change this try/catch by a better solution to test if the object is an array -// try { -// Object[] tab = (Object[])o; -// // If it's an array, we want only the first element wich is the entity wanted -// o = tab[0]; -// } catch (ClassCastException eee) { -// // no need to do something here, the cast is to test if the Object is an array -// } if (o instanceof Object[]) { // If it's an array, we want only the first element wich is the entity wanted o = ((Object[])o)[0];
participants (1)
-
fdesbois@users.nuiton.org