From 09633c645c9bd01b48da2d87869dbb985892bf2d Mon Sep 17 00:00:00 2001 From: "yaoh.wu" Date: Fri, 3 Aug 2018 16:12:33 +0800 Subject: [PATCH] REPORT-10287 source language level 1.6 --- plugin-report-doc_demo.iml | 7 +++++-- plugin.xml | 2 +- src/com/fr/data/ParamSAPDataTest.java | 5 +++-- src/com/fr/data/XMLDemoTableData.java | 3 ++- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/plugin-report-doc_demo.iml b/plugin-report-doc_demo.iml index 47c6d50..3302bb5 100644 --- a/plugin-report-doc_demo.iml +++ b/plugin-report-doc_demo.iml @@ -1,13 +1,12 @@ - + - @@ -15,5 +14,9 @@ + + + + \ No newline at end of file diff --git a/plugin.xml b/plugin.xml index 10415fd..879bd29 100644 --- a/plugin.xml +++ b/plugin.xml @@ -4,7 +4,7 @@ yes no - 1.1.0 + 1.1.1 10.0~ 2018-08-02 finereport diff --git a/src/com/fr/data/ParamSAPDataTest.java b/src/com/fr/data/ParamSAPDataTest.java index 973ed22..9b06dba 100644 --- a/src/com/fr/data/ParamSAPDataTest.java +++ b/src/com/fr/data/ParamSAPDataTest.java @@ -10,6 +10,7 @@ import com.sap.conn.jco.JCoFunction; import com.sap.conn.jco.JCoTable; import java.util.ArrayList; +import java.util.Collection; public class ParamSAPDataTest extends AbstractTableData { private String[] columnNames = null; @@ -21,12 +22,12 @@ public class ParamSAPDataTest extends AbstractTableData { private static JCoDestination jCoDestination; public ParamSAPDataTest() { - ArrayList arrayList = new ArrayList<>(); + ArrayList arrayList = new ArrayList(); arrayList.add("LIFNR"); arrayList.add("NAME1"); - this.parameters = new XmlColConf<>(arrayList, ParameterProvider.class); + this.parameters = new XmlColConf>(arrayList, ParameterProvider.class); this.columnNames = new String[this.columnNum]; this.columnNames[0] = "供应商编码"; diff --git a/src/com/fr/data/XMLDemoTableData.java b/src/com/fr/data/XMLDemoTableData.java index 8d5c80d..5477b97 100644 --- a/src/com/fr/data/XMLDemoTableData.java +++ b/src/com/fr/data/XMLDemoTableData.java @@ -16,6 +16,7 @@ import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.util.ArrayList; +import java.util.Collection; import java.util.List; /** @@ -30,7 +31,7 @@ public class XMLDemoTableData extends AbstractParameterTableData { // 构造函数 public XMLDemoTableData() { // 定义需要的参数,这里定义一个参数,参数名为filename,给其一个默认值"Northwind.xml" - this.parameters = new XmlColConf<>(new ArrayList(), ParameterProvider.class); + this.parameters = new XmlColConf>(new ArrayList(), ParameterProvider.class); parameters.add(new Parameter("filename", "Northwind")); }