summaryrefslogtreecommitdiff
path: root/reportbuilder/java/com/sun/star/report/pentaho/parser/rpt/GroupReadHandler.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-27 09:13:31 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-29 22:02:58 +0200
commitf4cca7347f56663f42c8a8fdf3bca654727fc060 (patch)
treecb5e4a5dff41de390fba642436f574071a1ba57a /reportbuilder/java/com/sun/star/report/pentaho/parser/rpt/GroupReadHandler.java
parent9140da5ee8cadeeaeea7bced2a2a5386807ce148 (diff)
Convert Java code in reportbuilder to use Java5 generics
Change-Id: Ia8a0206c6c81f2a4212dc92b80a9d6965ad8bd63
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/parser/rpt/GroupReadHandler.java')
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/rpt/GroupReadHandler.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/rpt/GroupReadHandler.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/rpt/GroupReadHandler.java
index 3a5ec73bcc11..61ce6bb16649 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/parser/rpt/GroupReadHandler.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/rpt/GroupReadHandler.java
@@ -46,7 +46,7 @@ public class GroupReadHandler extends ElementReadHandler
private RootTableReadHandler detailSection;
private final OfficeGroup group;
private final OfficeGroupInstanceSection groupInstanceSection;
- private final List functionHandlers;
+ private final List<FunctionReadHandler> functionHandlers;
private final ReportReadHandler rh;
public GroupReadHandler(final ReportReadHandler _rh)
@@ -57,7 +57,7 @@ public class GroupReadHandler extends ElementReadHandler
groupInstanceSection.setNamespace(JFreeReportInfo.REPORT_NAMESPACE);
groupInstanceSection.setType("group-instance");
group.addNode(groupInstanceSection);
- functionHandlers = new ArrayList();
+ functionHandlers = new ArrayList<FunctionReadHandler>();
}
/**
@@ -136,8 +136,7 @@ public class GroupReadHandler extends ElementReadHandler
{
for (int i = 0; i < functionHandlers.size(); i++)
{
- final FunctionReadHandler handler =
- (FunctionReadHandler) functionHandlers.get(i);
+ final FunctionReadHandler handler = functionHandlers.get(i);
groupInstanceSection.addExpression(handler.getExpression());
}