From 99958ef6253a233b4ffeabf5711ba65ac4b71061 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Wed, 2 Feb 2011 20:57:06 +0000 Subject: [PATCH] Generify ListUtil methods git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1066626 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/util/ListUtil.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/java/org/apache/fop/util/ListUtil.java b/src/java/org/apache/fop/util/ListUtil.java index d97457510..8e88e4cbf 100644 --- a/src/java/org/apache/fop/util/ListUtil.java +++ b/src/java/org/apache/fop/util/ListUtil.java @@ -34,22 +34,22 @@ public final class ListUtil { /** * Retrieve the last element from a list. * - * @param list - * The list to work on + * @param the type of objects stored in the list + * @param list the list to work on * @return last element */ - public static Object getLast(List list) { + public static T getLast(List list) { return list.get(list.size() - 1); } /** * Retrieve and remove the last element from a list. * - * @param list - * The list to work on + * @param the type of objects stored in the list + * @param list the list to work on * @return previous last element */ - public static Object removeLast(List list) { + public static T removeLast(List list) { return list.remove(list.size() - 1); } } -- 2.39.5