Fixing compile warning

Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/0b91bf21
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/0b91bf21
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/0b91bf21

Branch: refs/heads/master
Commit: 0b91bf21c1820afa49fbf098ec702fa5305b3d7a
Parents: cc0ac6b
Author: Francesco Chicchiriccò <[email protected]>
Authored: Fri Oct 17 10:02:47 2014 +0200
Committer: Francesco Chicchiriccò <[email protected]>
Committed: Fri Oct 17 10:02:47 2014 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/syncope/core/report/ReportJob.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/0b91bf21/core/src/main/java/org/apache/syncope/core/report/ReportJob.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/syncope/core/report/ReportJob.java 
b/core/src/main/java/org/apache/syncope/core/report/ReportJob.java
index 314c01a..3caf414 100644
--- a/core/src/main/java/org/apache/syncope/core/report/ReportJob.java
+++ b/core/src/main/java/org/apache/syncope/core/report/ReportJob.java
@@ -20,7 +20,6 @@ package org.apache.syncope.core.report;
 
 import java.io.ByteArrayOutputStream;
 import java.io.IOException;
-import java.io.StringWriter;
 import java.util.Date;
 import java.util.zip.Deflater;
 import java.util.zip.ZipEntry;
@@ -140,7 +139,6 @@ public class ReportJob implements Job {
 
         // 3. actual report execution
         StringBuilder reportExecutionMessage = new StringBuilder();
-        StringWriter exceptionWriter = new StringWriter();
         try {
             // report header
             handler.startDocument();
@@ -153,7 +151,8 @@ public class ReportJob implements Job {
                 Class<Reportlet> reportletClass =
                         
dataBinder.findReportletClassHavingConfClass(reportletConf.getClass());
                 if (reportletClass != null) {
-                    Reportlet autowired = (Reportlet) 
ApplicationContextProvider.getBeanFactory().
+                    Reportlet<ReportletConf> autowired =
+                            (Reportlet<ReportletConf>) 
ApplicationContextProvider.getBeanFactory().
                             createBean(reportletClass, 
AbstractBeanDefinition.AUTOWIRE_BY_TYPE, false);
                     autowired.setConf(reportletConf);
 

Reply via email to