IDEMPIERE-4329:Cleanup eclipse warnings (un-use import and deprecate function) (#158)
This commit is contained in:
parent
08c3b3c1be
commit
4f09cc5a7a
|
@ -6,7 +6,6 @@ import java.sql.SQLException;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.compiere.model.MProduct;
|
import org.compiere.model.MProduct;
|
||||||
import org.compiere.process.SvrProcess;
|
|
||||||
import org.compiere.util.DB;
|
import org.compiere.util.DB;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@ import java.sql.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.logging.*;
|
import java.util.logging.*;
|
||||||
import org.compiere.model.*;
|
import org.compiere.model.*;
|
||||||
import org.compiere.process.SvrProcess;
|
|
||||||
import org.compiere.util.*;
|
import org.compiere.util.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -15,7 +15,6 @@ package org.adempiere.exceptions;
|
||||||
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.adempiere.exceptions.AdempiereException;
|
|
||||||
import org.compiere.model.PO;
|
import org.compiere.model.PO;
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
import org.compiere.util.Msg;
|
import org.compiere.util.Msg;
|
||||||
|
|
|
@ -27,6 +27,7 @@ import org.compiere.model.MSysConfig;
|
||||||
import com.itextpdf.text.FontFactory;
|
import com.itextpdf.text.FontFactory;
|
||||||
import com.itextpdf.text.Rectangle;
|
import com.itextpdf.text.Rectangle;
|
||||||
import com.itextpdf.awt.DefaultFontMapper;
|
import com.itextpdf.awt.DefaultFontMapper;
|
||||||
|
import com.itextpdf.awt.PdfGraphics2D;
|
||||||
import com.itextpdf.text.pdf.PdfContentByte;
|
import com.itextpdf.text.pdf.PdfContentByte;
|
||||||
import com.itextpdf.text.pdf.PdfTemplate;
|
import com.itextpdf.text.pdf.PdfTemplate;
|
||||||
import com.itextpdf.text.pdf.PdfWriter;
|
import com.itextpdf.text.pdf.PdfWriter;
|
||||||
|
@ -76,7 +77,7 @@ public class Document {
|
||||||
}
|
}
|
||||||
|
|
||||||
PdfTemplate tp = cb.createTemplate(w, h);
|
PdfTemplate tp = cb.createTemplate(w, h);
|
||||||
Graphics2D g2 = tp.createGraphics(w, h, mapper);
|
Graphics2D g2 = new PdfGraphics2D(tp, w, h, mapper);
|
||||||
tp.setWidth(w);
|
tp.setWidth(w);
|
||||||
tp.setHeight(h);
|
tp.setHeight(h);
|
||||||
pageable.getPrintable(page).print(g2, pf, page);
|
pageable.getPrintable(page).print(g2, pf, page);
|
||||||
|
|
|
@ -723,26 +723,6 @@ public class Doc_AllocationHdr extends Doc
|
||||||
} // getCashAcct
|
} // getCashAcct
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
|
||||||
* Create Realized Gain & Loss.
|
|
||||||
* Compares the Accounted Amount of the Invoice to the
|
|
||||||
* Accounted Amount of the Allocation
|
|
||||||
* @param as accounting schema
|
|
||||||
* @param fact fact
|
|
||||||
* @param acct account
|
|
||||||
* @param invoice invoice
|
|
||||||
* @param allocationSource source amt
|
|
||||||
* @param allocationAccounted acct amt
|
|
||||||
* @return Error Message or null if OK
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
private String createRealizedGainLoss (DocLine line, MAcctSchema as, Fact fact, MAccount acct,
|
|
||||||
MInvoice invoice, BigDecimal allocationSource, BigDecimal allocationAccounted)
|
|
||||||
{
|
|
||||||
return createInvoiceGainLoss(line, as, fact, acct, invoice, allocationSource, allocationAccounted);
|
|
||||||
} // createRealizedGainLoss
|
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Create Tax Correction.
|
* Create Tax Correction.
|
||||||
* Requirement: Adjust the tax amount, if you did not receive the full
|
* Requirement: Adjust the tax amount, if you did not receive the full
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class TestEJB
|
||||||
*/
|
*/
|
||||||
public TestEJB ()
|
public TestEJB ()
|
||||||
{
|
{
|
||||||
CConnection cc = CConnection.get(null);
|
CConnection cc = CConnection.get();
|
||||||
cc.setAppsHost("dev1");
|
cc.setAppsHost("dev1");
|
||||||
InitialContext ic = cc.getInitialContext(false);
|
InitialContext ic = cc.getInitialContext(false);
|
||||||
/**/
|
/**/
|
||||||
|
|
|
@ -7,7 +7,6 @@ import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import org.compiere.model.X_M_ProductionLineMA;
|
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.Util;
|
import org.compiere.util.Util;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
|
|
||||||
package org.compiere.model;
|
package org.compiere.model;
|
||||||
|
|
||||||
import org.compiere.model.ModelValidator;
|
|
||||||
import org.compiere.util.CLogger;
|
import org.compiere.util.CLogger;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ import org.adempiere.exceptions.FillMandatoryException;
|
||||||
import org.compiere.model.MPOSKey;
|
import org.compiere.model.MPOSKey;
|
||||||
import org.compiere.model.MProduct;
|
import org.compiere.model.MProduct;
|
||||||
import org.compiere.model.Query;
|
import org.compiere.model.Query;
|
||||||
import org.compiere.process.SvrProcess;
|
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,6 @@ import org.compiere.model.MOrgInfo;
|
||||||
import org.compiere.model.X_IMP_Processor_Type;
|
import org.compiere.model.X_IMP_Processor_Type;
|
||||||
import org.compiere.util.Env;
|
import org.compiere.util.Env;
|
||||||
import org.compiere.util.TimeUtil;
|
import org.compiere.util.TimeUtil;
|
||||||
import org.compiere.server.AdempiereServer;
|
|
||||||
import org.compiere.model.MIMPProcessor;
|
import org.compiere.model.MIMPProcessor;
|
||||||
import org.compiere.model.MIMPProcessorLog;
|
import org.compiere.model.MIMPProcessorLog;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
package org.zkoss.zul.impl;
|
package org.zkoss.zul.impl;
|
||||||
|
|
||||||
import org.zkoss.lang.Library;
|
import org.zkoss.lang.Library;
|
||||||
import org.zkoss.zul.impl.GridDataLoader;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author hengsin
|
* @author hengsin
|
||||||
|
|
Loading…
Reference in New Issue