Fix Java generics cast
emmanue1
5 years ago
259 | 259 | |
260 | 260 | String u = uri.toString(); |
261 | 261 | T child = null; |
262 | Enumeration<T> enumeration = node.children(); | |
262 | Enumeration enumeration = node.children(); | |
263 | 263 | |
264 | 264 | while (enumeration.hasMoreElements()) { |
265 | T element = enumeration.nextElement(); | |
265 | T element = (T)enumeration.nextElement(); | |
266 | 266 | String childU = element.getUri().toString(); |
267 | 267 | |
268 | 268 | if (u.length() > childU.length()) { |