diff --git a/base/src/org/adempiere/pipo/AbstractElementHandler.java b/base/src/org/adempiere/pipo/AbstractElementHandler.java index b87fa6f139..4ab728bf62 100644 --- a/base/src/org/adempiere/pipo/AbstractElementHandler.java +++ b/base/src/org/adempiere/pipo/AbstractElementHandler.java @@ -192,7 +192,6 @@ public abstract class AbstractElementHandler implements ElementHandler { int tableID = get_IDWithColumn(ctx, "AD_Table", "TableName", tableName); POInfo poInfo = POInfo.getPOInfo(ctx, tableID, getTrxName(ctx)); for (int i = 0; i < poInfo.getColumnCount(); i++){ - String colName = poInfo.getColumnName(i); colValue=null; int columnID =get_IDWithMasterAndColumn (ctx, "AD_Column", "ColumnName", poInfo.getColumnName(i), "AD_Table", tableID); diff --git a/base/src/org/adempiere/pipo/CreateZipFile.java b/base/src/org/adempiere/pipo/CreateZipFile.java index ff7fddca1c..f9cf407149 100644 --- a/base/src/org/adempiere/pipo/CreateZipFile.java +++ b/base/src/org/adempiere/pipo/CreateZipFile.java @@ -101,11 +101,10 @@ public class CreateZipFile { } static public String getParentDir(File zipFilepath) { - String ParentDir=null; try { ZipFile zipFile = new ZipFile(zipFilepath); - Enumeration entries = zipFile.entries(); - ZipEntry entry = (ZipEntry)entries.nextElement(); + Enumeration entries = zipFile.entries(); + ZipEntry entry = entries.nextElement(); File tempfile = new File(entry.getName()); while (tempfile.getParent()!=null) tempfile = tempfile.getParentFile(); diff --git a/base/src/org/adempiere/process/Export.java b/base/src/org/adempiere/process/Export.java index d361d6b183..48ce4ae933 100644 --- a/base/src/org/adempiere/process/Export.java +++ b/base/src/org/adempiere/process/Export.java @@ -134,7 +134,6 @@ public class Export extends SvrProcess * Process - Generate Export Format * @return info */ - @SuppressWarnings("unchecked") protected String doIt () throws Exception { outDocument = createNewDocument();