From 1e30b562906ebf79cc3d42233f8146fab209b53b Mon Sep 17 00:00:00 2001 From: Richard Morales Date: Thu, 6 Dec 2012 15:00:04 -0500 Subject: [PATCH] IDEMPIERE-455 Discover and fix FindBugs problems / Eclipse Warning : Is never used --- .../compiere/model/CalloutInvoiceBatch.java | 1 - .../org/compiere/model/CalloutMovement.java | 1 - .../src/org/compiere/model/CalloutOrder.java | 1 - .../process/ImmediateBankTransfer.java | 1 + .../src/org/compiere/process/Aging.java | 6 ++--- .../org/compiere/process/AllocationReset.java | 7 +++--- .../compiere/process/CopyReportProcess.java | 1 - .../src/org/compiere/process/CostUpdate.java | 1 - .../org/compiere/process/DistributionRun.java | 1 + .../org/compiere/process/InvoiceGenerate.java | 1 + .../org/compiere/process/InvoicePrint.java | 1 + .../compiere/process/M_PriceList_Create.java | 3 +++ .../compiere/process/M_Production_Run.java | 4 +-- .../compiere/process/ReplicationLocal.java | 1 + .../compiere/process/ReplicationRemote.java | 4 ++- .../process/RequestEMailProcessor.java | 1 + .../org/compiere/process/StorageCleanup.java | 1 - .../org/adempiere/apps/graph/GraphColumn.java | 2 ++ .../adempiere/util/ModelClassGenerator.java | 2 -- .../util/ModelInterfaceGenerator.java | 2 -- .../src/org/compiere/Adempiere.java | 1 - .../org/compiere/acct/Doc_AllocationHdr.java | 3 ++- .../src/org/compiere/acct/Doc_GLJournal.java | 1 + .../src/org/compiere/acct/Doc_InOut.java | 1 + .../src/org/compiere/acct/Doc_Inventory.java | 1 + .../src/org/compiere/acct/Doc_Movement.java | 1 + .../src/org/compiere/acct/Doc_Order.java | 7 ++++-- .../src/org/compiere/acct/Doc_Production.java | 2 -- .../org/compiere/acct/Doc_Requisition.java | 3 ++- .../src/org/compiere/acct/ProductInfo.java | 13 +++++----- .../src/org/compiere/db/CConnection.java | 4 +-- .../src/org/compiere/db/CreateAdempiere.java | 4 ++- .../src/org/compiere/dbPort/Convert.java | 1 - .../src/org/compiere/model/GridTab.java | 4 +-- .../src/org/compiere/model/GridTable.java | 2 +- .../src/org/compiere/model/GridWorkbench.java | 2 +- .../src/org/compiere/model/MAchievement.java | 1 + .../org/compiere/model/MAlertProcessor.java | 1 + .../org/compiere/model/MAllocationLine.java | 1 + .../org/compiere/model/MAssetTransfer.java | 1 + .../src/org/compiere/model/MAttachment.java | 1 + .../src/org/compiere/model/MBOM.java | 1 + .../src/org/compiere/model/MBOMProduct.java | 1 + .../org/compiere/model/MBPBankAccount.java | 1 + .../compiere/model/MBankStatementMatcher.java | 1 + .../src/org/compiere/model/MCashBook.java | 1 + .../src/org/compiere/model/MCashPlan.java | 1 + .../src/org/compiere/model/MCashPlanLine.java | 1 + .../src/org/compiere/model/MCity.java | 1 + .../src/org/compiere/model/MClient.java | 2 +- .../src/org/compiere/model/MClientShare.java | 2 +- .../src/org/compiere/model/MContainer.java | 1 + .../org/compiere/model/MContainerElement.java | 1 + .../src/org/compiere/model/MCostQueue.java | 2 ++ .../src/org/compiere/model/MCountry.java | 1 + .../src/org/compiere/model/MCurrencyAcct.java | 1 + .../src/org/compiere/model/MDepreciation.java | 4 +-- .../model/MDepreciationConvention.java | 16 +++++++----- .../compiere/model/MDepreciationEntry.java | 8 ------ .../compiere/model/MDepreciationWorkfile.java | 3 --- .../org/compiere/model/MDiscountSchema.java | 1 - .../src/org/compiere/model/MDistribution.java | 1 + .../org/compiere/model/MDunningRunEntry.java | 5 ++-- .../src/org/compiere/model/MEXPFormat.java | 1 + .../model/MEXPProcessorParameter.java | 1 + .../org/compiere/model/MEXPProcessorType.java | 1 + .../src/org/compiere/model/MInOut.java | 2 ++ .../org/compiere/model/MInventoryLine.java | 4 +-- .../src/org/compiere/model/MIssueProject.java | 4 +-- .../org/compiere/model/MJournalGenerator.java | 1 + .../compiere/model/MJournalGeneratorLine.java | 1 + .../model/MJournalGeneratorSource.java | 1 + .../org/compiere/model/MLocatorLookup.java | 1 - .../src/org/compiere/model/MMeasureCalc.java | 1 + .../src/org/compiere/model/MMediaServer.java | 1 + .../org/compiere/model/MMovementConfirm.java | 2 -- .../src/org/compiere/model/MOrderLine.java | 1 - .../src/org/compiere/model/MProductBOM.java | 1 + .../src/org/compiere/model/MProductPrice.java | 1 + .../src/org/compiere/model/MProduction.java | 1 + .../src/org/compiere/model/MProjectType.java | 1 + .../src/org/compiere/model/MRecentItem.java | 1 + .../compiere/model/MReplicationStrategy.java | 1 + .../src/org/compiere/model/MRequestType.java | 2 ++ .../src/org/compiere/model/MRfQResponse.java | 1 + .../src/org/compiere/model/MRule.java | 1 + .../src/org/compiere/model/MSequence.java | 1 + .../src/org/compiere/model/MSystem.java | 4 +++ .../org/compiere/model/MTimeExpenseLine.java | 1 + .../src/org/compiere/model/MTree.java | 6 ++--- .../src/org/compiere/model/MUserRoles.java | 1 + .../src/org/compiere/model/MXIFAJournal.java | 10 ++++---- .../org/compiere/model/PaymentProcessor.java | 1 + .../src/org/compiere/model/ProductCost.java | 8 +++--- .../src/org/compiere/model/ScheduleUtil.java | 2 ++ .../org/compiere/model/StateChangeEvent.java | 1 + .../src/org/compiere/print/CPaper.java | 1 + .../src/org/compiere/print/DataEngine.java | 6 +++-- .../src/org/compiere/print/PrintUtil.java | 5 ++-- .../org/compiere/print/ServerReportCtl.java | 1 + .../compiere/print/layout/HTMLRenderer.java | 2 -- .../compiere/print/layout/StringElement.java | 7 +++--- .../compiere/print/layout/TableElement.java | 10 ++++---- .../src/org/compiere/tools/FileUtil.java | 4 --- .../src/org/compiere/tools/RMIUtil.java | 7 ++---- .../src/org/compiere/util/AmtInWords_TH.java | 4 +-- .../src/org/compiere/util/AmtInWords_VI.java | 2 -- .../org/compiere/util/CLogErrorBuffer.java | 2 +- .../src/org/compiere/util/CLogFormatter.java | 1 - .../src/org/compiere/util/CacheMgt.java | 2 -- .../src/org/compiere/util/Login.java | 8 +++--- .../src/org/compiere/util/SecureEngine.java | 2 +- .../src/org/compiere/util/ZipUtil.java | 1 + .../src/org/compiere/wf/MWFNodeNext.java | 1 - .../org/eevolution/model/MDDOrderLine.java | 3 +-- .../fa/model/CalloutA_Asset_Addition.java | 1 - .../idempiere/fa/model/ModelValidator.java | 18 +------------ .../fa/process/ImportFixedAsset.java | 10 +------- .../src/compiere/model/MyValidator.java | 9 +++---- .../compiere/install/ConfigurationData.java | 2 +- .../compiere/install/ConfigurationPanel.java | 2 -- .../compiere/install/InstallApplication.java | 1 - .../org/compiere/install/KeyStoreDialog.java | 1 - .../src/org/compiere/model/PP_Optimal.java | 9 +++++++ .../org/compiere/model/PP_PayFlowPro4.java | 1 - .../src/org/compiere/apps/RecordInfo.java | 1 + .../adempiere/webui/DelegatingServlet.java | 1 - .../src/org/adempiere/webui/Extensions.java | 1 - .../adempiere/webui/TimelineEventFeed.java | 2 +- .../org/adempiere/webui/ValuePreference.java | 3 ++- .../src/org/adempiere/webui/WZoomAcross.java | 13 ++++++---- .../adempiere/webui/adwindow/GridView.java | 3 +-- .../webui/adwindow/ProcessButtonPopup.java | 1 - .../adempiere/webui/apps/ProcessDialog.java | 1 + .../webui/apps/form/WAttributeGrid.java | 1 - .../adempiere/webui/apps/form/WBOMDrop.java | 3 ++- .../adempiere/webui/apps/form/WCharge.java | 12 +++++---- .../org/adempiere/webui/apps/form/WMatch.java | 1 + .../org/adempiere/webui/apps/form/WMerge.java | 1 + .../adempiere/webui/apps/form/WPayPrint.java | 6 ++--- .../adempiere/webui/apps/form/WPayment.java | 1 - .../webui/apps/form/WReportCustomization.java | 1 - .../webui/apps/form/WSQLProcess.java | 1 + .../webui/apps/form/WTreeMaintenance.java | 6 +++-- .../webui/apps/form/WTrxMaterial.java | 1 + .../webui/component/ADTreeOnDropListener.java | 3 +-- .../component/test/ListModelTableTest.java | 1 + .../webui/editor/WAssignmentEditor.java | 1 + .../webui/panel/CustomizeGridViewPanel.java | 7 +++--- .../adempiere/webui/panel/HeaderPanel.java | 1 - .../webui/panel/MenuTreeFilterPanel.java | 2 ++ .../adempiere/webui/panel/TimeoutPanel.java | 2 -- .../webui/panel/WRC1DisplayFieldsPanel.java | 2 -- .../webui/panel/WRC5SummaryFieldsPanel.java | 2 -- .../org/adempiere/webui/panel/WSchedule.java | 3 +++ .../webui/window/WAccountDialog.java | 5 ++-- .../webui/window/WAssignmentDialog.java | 1 + .../webui/window/WLocatorDialog.java | 3 +++ .../webui/window/WPAttributeDialog.java | 2 +- .../webui/window/WRecordAccessDialog.java | 1 - .../webui/window/ZkReportViewer.java | 2 +- .../org/compiere/apps/form/Allocation.java | 2 -- .../src/org/compiere/apps/form/Charge.java | 1 + .../src/org/compiere/apps/form/Match.java | 5 ++-- .../src/org/compiere/apps/form/Merge.java | 1 + .../src/org/compiere/apps/form/PaySelect.java | 5 ++-- .../src/org/compiere/apps/form/TreeBOM.java | 5 ---- .../org/compiere/apps/wf/WFNodeWidget.java | 1 - .../src/org/compiere/print/ReportCtl.java | 2 ++ .../org/compiere/wstore/ExpenseServlet.java | 1 + .../src/org/apache/ecs/StringElement.java | 4 +-- .../db/oracle/config/ConfigOracle.java | 1 - .../src/org/compiere/db/DB_Oracle.java | 1 - .../compiere/dbPort/Convert_PostgreSQL.java | 5 +--- .../org/idempiere/fitnesse/fixture/Login.java | 1 + .../fitnesse/fixture/RunProcess.java | 1 + .../_3e/ADInterface/ADDataStatusListener.java | 2 +- .../src/com/_3e/ADInterface/ADLookup.java | 14 +++-------- .../com/_3e/ADInterface/ADServiceImpl.java | 25 ++++++++++--------- .../src/com/_3e/ADInterface/CompiereUtil.java | 2 ++ .../src/com/_3e/ADInterface/InfoProduct.java | 4 +-- .../src/com/_3e/ADInterface/Process.java | 21 ++++++++-------- .../ObPOSInterface/ExternalSalesImpl.java | 3 +++ .../ObPOSInterface/WebServiceImpl.java | 1 + .../src/net/sf/compilo/report/ReportInfo.java | 3 ++- .../sf/compilo/report/ReportProcessor.java | 2 +- .../org/compiere/model/MWebServiceType.java | 1 + .../org/zkoss/util/resource/ClassLocator.java | 23 ++++++++--------- 188 files changed, 300 insertions(+), 278 deletions(-) diff --git a/org.adempiere.base.callout/src/org/compiere/model/CalloutInvoiceBatch.java b/org.adempiere.base.callout/src/org/compiere/model/CalloutInvoiceBatch.java index 25b2fb3956..49f5f6dd06 100644 --- a/org.adempiere.base.callout/src/org/compiere/model/CalloutInvoiceBatch.java +++ b/org.adempiere.base.callout/src/org/compiere/model/CalloutInvoiceBatch.java @@ -368,7 +368,6 @@ public class CalloutInvoiceBatch extends CalloutEngine LineNetAmt = LineNetAmt.setScale(StdPrecision, BigDecimal.ROUND_HALF_UP); // Calculate Tax Amount - boolean IsSOTrx = "Y".equals(Env.getContext(Env.getCtx(), WindowNo, "IsSOTrx")); boolean IsTaxIncluded = "Y".equals(Env.getContext(Env.getCtx(), WindowNo, "IsTaxIncluded")); BigDecimal TaxAmt = null; diff --git a/org.adempiere.base.callout/src/org/compiere/model/CalloutMovement.java b/org.adempiere.base.callout/src/org/compiere/model/CalloutMovement.java index b05a50e7d8..8ab6e21b11 100644 --- a/org.adempiere.base.callout/src/org/compiere/model/CalloutMovement.java +++ b/org.adempiere.base.callout/src/org/compiere/model/CalloutMovement.java @@ -20,7 +20,6 @@ package org.compiere.model; import java.math.BigDecimal; import java.util.Properties; -import org.compiere.util.DB; import org.compiere.util.Env; /** diff --git a/org.adempiere.base.callout/src/org/compiere/model/CalloutOrder.java b/org.adempiere.base.callout/src/org/compiere/model/CalloutOrder.java index 9bec930acb..1498491f5d 100644 --- a/org.adempiere.base.callout/src/org/compiere/model/CalloutOrder.java +++ b/org.adempiere.base.callout/src/org/compiere/model/CalloutOrder.java @@ -28,7 +28,6 @@ import org.compiere.util.CLogger; import org.compiere.util.DB; import org.compiere.util.DisplayType; import org.compiere.util.Env; -import org.compiere.util.Ini; import org.compiere.util.Msg; /** diff --git a/org.adempiere.base.process/src/org/adempiere/process/ImmediateBankTransfer.java b/org.adempiere.base.process/src/org/adempiere/process/ImmediateBankTransfer.java index 24041ec454..58e865804b 100644 --- a/org.adempiere.base.process/src/org/adempiere/process/ImmediateBankTransfer.java +++ b/org.adempiere.base.process/src/org/adempiere/process/ImmediateBankTransfer.java @@ -247,6 +247,7 @@ public class ImmediateBankTransfer extends SvrProcess // Create Cash & CashLines MCash cash = createCash(); + @SuppressWarnings("unused") MCashLine cashLines[]= createCashLines(cash); StringBuilder processMsg = new StringBuilder().append(cash.getDocumentNo()); diff --git a/org.adempiere.base.process/src/org/compiere/process/Aging.java b/org.adempiere.base.process/src/org/compiere/process/Aging.java index 980b42a002..9f70688cc1 100644 --- a/org.adempiere.base.process/src/org/compiere/process/Aging.java +++ b/org.adempiere.base.process/src/org/compiere/process/Aging.java @@ -193,15 +193,15 @@ public class Aging extends SvrProcess int C_Currency_ID = rs.getInt(5); boolean IsSOTrx = "Y".equals(rs.getString(6)); // - Timestamp DateInvoiced = rs.getTimestamp(7); - int NetDays = rs.getInt(8); + //Timestamp DateInvoiced = rs.getTimestamp(7); + //int NetDays = rs.getInt(8); Timestamp DueDate = rs.getTimestamp(9); // Days Due int DaysDue = rs.getInt(10) // based on today + m_statementOffset; // BigDecimal GrandTotal = rs.getBigDecimal(11); - BigDecimal PaidAmt = rs.getBigDecimal(12); + //BigDecimal PaidAmt = rs.getBigDecimal(12); BigDecimal OpenAmt = rs.getBigDecimal(13); // int C_Activity_ID = p_IsListInvoices ? rs.getInt(14) : 0; diff --git a/org.adempiere.base.process/src/org/compiere/process/AllocationReset.java b/org.adempiere.base.process/src/org/compiere/process/AllocationReset.java index 41233d26c1..acce4872ff 100644 --- a/org.adempiere.base.process/src/org/compiere/process/AllocationReset.java +++ b/org.adempiere.base.process/src/org/compiere/process/AllocationReset.java @@ -197,9 +197,9 @@ public class AllocationReset extends SvrProcess /** * Set BPartner (may not be required */ - private void setBPartner() + /*private void setBPartner() { - /** + UPDATE C_AllocationLine al SET C_BPartner_ID=(SELECT C_BPartner_ID FROM C_Payment p WHERE al.C_Payment_ID=p.C_Payment_ID) WHERE C_BPartner_ID IS NULL AND C_Payment_ID IS NOT NULL; @@ -210,7 +210,6 @@ public class AllocationReset extends SvrProcess SET C_BPartner_ID=(SELECT C_BPartner_ID FROM C_Order o WHERE al.C_Order_ID=o.C_Order_ID) WHERE C_BPartner_ID IS NULL AND C_Order_ID IS NOT NULL; COMMIT - **/ - } // setBPartner + } // setBPartner*/ } // AllocationReset diff --git a/org.adempiere.base.process/src/org/compiere/process/CopyReportProcess.java b/org.adempiere.base.process/src/org/compiere/process/CopyReportProcess.java index 01354c6b0e..196d8385d7 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CopyReportProcess.java +++ b/org.adempiere.base.process/src/org/compiere/process/CopyReportProcess.java @@ -19,7 +19,6 @@ import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; import org.compiere.model.MProcess; -import org.compiere.model.MProcessPara; import org.compiere.util.Msg; /** diff --git a/org.adempiere.base.process/src/org/compiere/process/CostUpdate.java b/org.adempiere.base.process/src/org/compiere/process/CostUpdate.java index aecef8575c..0118282f62 100644 --- a/org.adempiere.base.process/src/org/compiere/process/CostUpdate.java +++ b/org.adempiere.base.process/src/org/compiere/process/CostUpdate.java @@ -152,7 +152,6 @@ public class CostUpdate extends SvrProcess if (p_SetFutureCostTo.length() == 0) return true; - String toTarget = to; if (to.equals(TO_AverageInvoiceHistory)) to = TO_AverageInvoice; if (to.equals(TO_AveragePOHistory)) diff --git a/org.adempiere.base.process/src/org/compiere/process/DistributionRun.java b/org.adempiere.base.process/src/org/compiere/process/DistributionRun.java index b591e99288..873e7f8d4d 100644 --- a/org.adempiere.base.process/src/org/compiere/process/DistributionRun.java +++ b/org.adempiere.base.process/src/org/compiere/process/DistributionRun.java @@ -71,6 +71,7 @@ public class DistributionRun extends SvrProcess /** Consolidate Document **/ private boolean p_ConsolidateDocument = false; /** Distribution List **/ + @SuppressWarnings("unused") private int p_M_DistributionList_ID = 0; /** Distribute Based in DRP Demand **/ private boolean p_BasedInDamnd = false; diff --git a/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java b/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java index 4dc4dc6838..2910b72b27 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java +++ b/org.adempiere.base.process/src/org/compiere/process/InvoiceGenerate.java @@ -260,6 +260,7 @@ public class InvoiceGenerate extends SvrProcess BigDecimal toInvoice = oLine.getQtyOrdered().subtract(oLine.getQtyInvoiced()); if (toInvoice.compareTo(Env.ZERO) == 0 && oLine.getM_Product_ID() != 0) continue; + @SuppressWarnings("unused") BigDecimal notInvoicedShipment = oLine.getQtyDelivered().subtract(oLine.getQtyInvoiced()); // boolean fullyDelivered = oLine.getQtyOrdered().compareTo(oLine.getQtyDelivered()) == 0; diff --git a/org.adempiere.base.process/src/org/compiere/process/InvoicePrint.java b/org.adempiere.base.process/src/org/compiere/process/InvoicePrint.java index c219703eb8..a65d3f4feb 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InvoicePrint.java +++ b/org.adempiere.base.process/src/org/compiere/process/InvoicePrint.java @@ -350,6 +350,7 @@ public class InvoicePrint extends SvrProcess StringBuilder sb = new StringBuilder ("UPDATE C_Invoice ") .append("SET DatePrinted=SysDate, IsPrinted='Y' WHERE C_Invoice_ID=") .append (C_Invoice_ID); + @SuppressWarnings("unused") int no = DB.executeUpdate(sb.toString(), get_TrxName()); } } // for all entries diff --git a/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java b/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java index 6b7d868a16..95474c617e 100644 --- a/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java +++ b/org.adempiere.base.process/src/org/compiere/process/M_PriceList_Create.java @@ -86,8 +86,11 @@ public class M_PriceList_Create extends SvrProcess { int cntu = 0; int cntd = 0; int cnti = 0; + @SuppressWarnings("unused") int totu = 0; + @SuppressWarnings("unused") int toti = 0; + @SuppressWarnings("unused") int totd = 0; int V_temp; int v_NextNo = 0; diff --git a/org.adempiere.base.process/src/org/compiere/process/M_Production_Run.java b/org.adempiere.base.process/src/org/compiere/process/M_Production_Run.java index 0929c83a50..fb5974145d 100644 --- a/org.adempiere.base.process/src/org/compiere/process/M_Production_Run.java +++ b/org.adempiere.base.process/src/org/compiere/process/M_Production_Run.java @@ -34,7 +34,6 @@ import org.compiere.model.X_M_ProductionPlan; import org.compiere.util.AdempiereUserError; import org.compiere.util.CLogger; import org.compiere.util.DB; -import org.compiere.util.Env; import org.compiere.util.ValueNamePair; import org.eevolution.model.MPPProductBOM; import org.eevolution.model.MPPProductBOMLine; @@ -194,7 +193,8 @@ public class M_Production_Run extends SvrProcess { /* Immediate accounting */ if (MClient.isClientAccountingImmediate()) { - String ignoreError = DocumentEngine.postImmediate(getCtx(), getAD_Client_ID(), production.get_Table_ID(), production.get_ID(), true, get_TrxName()); + @SuppressWarnings("unused") + String ignoreError = DocumentEngine.postImmediate(getCtx(), getAD_Client_ID(), production.get_Table_ID(), production.get_ID(), true, get_TrxName()); } } diff --git a/org.adempiere.base.process/src/org/compiere/process/ReplicationLocal.java b/org.adempiere.base.process/src/org/compiere/process/ReplicationLocal.java index 969eb01f00..cddc337828 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ReplicationLocal.java +++ b/org.adempiere.base.process/src/org/compiere/process/ReplicationLocal.java @@ -506,6 +506,7 @@ public class ReplicationLocal extends SvrProcess private void exit() { log.info ("exit"); + @SuppressWarnings("unused") Object result = doIt(START, "exit", null); ProcessInfo pi = new ProcessInfo("Exit", 0); pi.setClassName (REMOTE); diff --git a/org.adempiere.base.process/src/org/compiere/process/ReplicationRemote.java b/org.adempiere.base.process/src/org/compiere/process/ReplicationRemote.java index 96f9b1e48b..cd790a7aa0 100644 --- a/org.adempiere.base.process/src/org/compiere/process/ReplicationRemote.java +++ b/org.adempiere.base.process/src/org/compiere/process/ReplicationRemote.java @@ -108,7 +108,7 @@ public class ReplicationRemote extends SvrProcess // Update Tables **** while (rs.next ()) { - int AD_Table_ID = rs.getInt(1); + //int AD_Table_ID = rs.getInt(1); String ReplicationType = rs.getString(2); String TableName = rs.getString(3); log.fine("setupRemote - " + TableName + " - " + ReplicationType); @@ -306,7 +306,9 @@ public class ReplicationRemote extends SvrProcess private String exit() throws Exception { log.info ("exit"); + @SuppressWarnings("unused") ProcessInfo pi = getProcessInfo(); + @SuppressWarnings("unused") Object result = doIt(ReplicationLocal.START, "exit", null); return "exit"; } // exit diff --git a/org.adempiere.base.process/src/org/compiere/process/RequestEMailProcessor.java b/org.adempiere.base.process/src/org/compiere/process/RequestEMailProcessor.java index c70aa07cf5..76ffdef0e2 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RequestEMailProcessor.java +++ b/org.adempiere.base.process/src/org/compiere/process/RequestEMailProcessor.java @@ -280,6 +280,7 @@ public class RequestEMailProcessor extends SvrProcess log.info("message info: Sent -> " + msg.getSentDate() + " From -> " + msg.getFrom()[0].toString()); // Delete in InBox msg.setFlag(Flags.Flag.DELETED, true); + @SuppressWarnings("unused") Message[] deleted = inbox.expunge(); noRequest++; diff --git a/org.adempiere.base.process/src/org/compiere/process/StorageCleanup.java b/org.adempiere.base.process/src/org/compiere/process/StorageCleanup.java index 373f486556..94f26940bc 100644 --- a/org.adempiere.base.process/src/org/compiere/process/StorageCleanup.java +++ b/org.adempiere.base.process/src/org/compiere/process/StorageCleanup.java @@ -22,7 +22,6 @@ import java.sql.ResultSet; import java.util.ArrayList; import java.util.logging.Level; -import org.compiere.model.MLocator; import org.compiere.model.MMovement; import org.compiere.model.MMovementLine; import org.compiere.model.MRefList; diff --git a/org.adempiere.base/src/org/adempiere/apps/graph/GraphColumn.java b/org.adempiere.base/src/org/adempiere/apps/graph/GraphColumn.java index c4f495e357..c596b0dfc1 100644 --- a/org.adempiere.base/src/org/adempiere/apps/graph/GraphColumn.java +++ b/org.adempiere.base/src/org/adempiere/apps/graph/GraphColumn.java @@ -120,6 +120,7 @@ public class GraphColumn /** Column Data Value */ private double m_value = 0; /** Column Label Value */ + @SuppressWarnings("unused") private String m_labelValue = ""; /** Column Data Target Value */ private double m_targetValue = 0; @@ -129,6 +130,7 @@ public class GraphColumn private double m_height = 0; /** Logger */ + @SuppressWarnings("unused") private static CLogger log = CLogger.getCLogger (GraphColumn.class); /** Integer Number Format */ private static DecimalFormat s_format = DisplayType.getNumberFormat(DisplayType.Integer); diff --git a/org.adempiere.base/src/org/adempiere/util/ModelClassGenerator.java b/org.adempiere.base/src/org/adempiere/util/ModelClassGenerator.java index 90dbf78b14..55503b6d16 100644 --- a/org.adempiere.base/src/org/adempiere/util/ModelClassGenerator.java +++ b/org.adempiere.base/src/org/adempiere/util/ModelClassGenerator.java @@ -902,7 +902,6 @@ public class ModelClassGenerator sql.append(" ORDER BY TableName"); // - int count = 0; PreparedStatement pstmt = null; ResultSet rs = null; try @@ -912,7 +911,6 @@ public class ModelClassGenerator while (rs.next()) { new ModelClassGenerator(rs.getInt(1), directory.toString(), packageName); - count++; } } catch (SQLException e) diff --git a/org.adempiere.base/src/org/adempiere/util/ModelInterfaceGenerator.java b/org.adempiere.base/src/org/adempiere/util/ModelInterfaceGenerator.java index 7d1a46f9db..0d8077ddf3 100644 --- a/org.adempiere.base/src/org/adempiere/util/ModelInterfaceGenerator.java +++ b/org.adempiere.base/src/org/adempiere/util/ModelInterfaceGenerator.java @@ -825,7 +825,6 @@ public class ModelInterfaceGenerator sql.append(" ORDER BY TableName"); // - int count = 0; PreparedStatement pstmt = null; ResultSet rs = null; try @@ -835,7 +834,6 @@ public class ModelInterfaceGenerator while (rs.next()) { new ModelInterfaceGenerator(rs.getInt(1), directory.toString(), packageName); - count++; } } catch (SQLException e) diff --git a/org.adempiere.base/src/org/compiere/Adempiere.java b/org.adempiere.base/src/org/compiere/Adempiere.java index 14b08dfd13..93b4753508 100644 --- a/org.adempiere.base/src/org/compiere/Adempiere.java +++ b/org.adempiere.base/src/org/compiere/Adempiere.java @@ -24,7 +24,6 @@ import java.io.InputStream; import java.net.URL; import java.util.Properties; import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.TimeUnit; import java.util.logging.Level; import javax.jnlp.BasicService; diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_AllocationHdr.java b/org.adempiere.base/src/org/compiere/acct/Doc_AllocationHdr.java index 0b4795c0df..afa9a789c0 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_AllocationHdr.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_AllocationHdr.java @@ -28,7 +28,6 @@ import org.compiere.model.MAcctSchemaElement; import org.compiere.model.MAllocationHdr; import org.compiere.model.MAllocationLine; import org.compiere.model.MCashLine; -import org.compiere.model.MCharge; // adaxa-pb import org.compiere.model.MConversionRate; import org.compiere.model.MFactAcct; import org.compiere.model.MInvoice; @@ -200,6 +199,7 @@ public class Doc_AllocationHdr extends Doc .add(line.getWriteOffAmt()); BigDecimal allocationSourceForRGL = allocationSource; // for realized gain & loss purposes BigDecimal allocationAccounted = Env.ZERO; // AR/AP balance corrected + @SuppressWarnings("unused") BigDecimal allocationAccountedForRGL = Env.ZERO; // for realized gain & loss purposes FactLine fl = null; @@ -817,6 +817,7 @@ public class Doc_AllocationHdr extends Doc { fact.createLine (line, acct, as.getC_Currency_ID(), acctDifference); + @SuppressWarnings("unused") FactLine fl = fact.createLine (line, loss, gain, as.getC_Currency_ID(), acctDifference.negate()); } diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_GLJournal.java b/org.adempiere.base/src/org/compiere/acct/Doc_GLJournal.java index ece3e6b811..1c6318eba3 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_GLJournal.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_GLJournal.java @@ -149,6 +149,7 @@ public class Doc_GLJournal extends Doc { if (p_lines[i].getC_AcctSchema_ID () == as.getC_AcctSchema_ID ()) { + @SuppressWarnings("unused") FactLine line = fact.createLine (p_lines[i], p_lines[i].getAccount (), getC_Currency_ID(), diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_InOut.java b/org.adempiere.base/src/org/compiere/acct/Doc_InOut.java index 77413e0b1a..c773859437 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_InOut.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_InOut.java @@ -60,6 +60,7 @@ public class Doc_InOut extends Doc } // DocInOut private int m_Reversal_ID = 0; + @SuppressWarnings("unused") private String m_DocStatus = ""; /** diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_Inventory.java b/org.adempiere.base/src/org/compiere/acct/Doc_Inventory.java index 7d1f6b2afd..88417492d6 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_Inventory.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_Inventory.java @@ -44,6 +44,7 @@ import org.compiere.util.Env; public class Doc_Inventory extends Doc { private int m_Reversal_ID = 0; + @SuppressWarnings("unused") private String m_DocStatus = ""; /** diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_Movement.java b/org.adempiere.base/src/org/compiere/acct/Doc_Movement.java index 46b8a90e5c..3ee984284e 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_Movement.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_Movement.java @@ -41,6 +41,7 @@ import org.compiere.util.Env; public class Doc_Movement extends Doc { private int m_Reversal_ID = 0; + @SuppressWarnings("unused") private String m_DocStatus = ""; /** diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_Order.java b/org.adempiere.base/src/org/compiere/acct/Doc_Order.java index d6e9269101..50a9322f0a 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_Order.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_Order.java @@ -103,7 +103,6 @@ public class Doc_Order extends Doc BigDecimal Qty = line.getQtyOrdered(); docLine.setQty(Qty, order.isSOTrx()); // - BigDecimal PriceActual = line.getPriceActual(); BigDecimal PriceCost = null; if (getDocumentType().equals(DOCTYPE_POrder)) // PO PriceCost = line.getPriceCost(); @@ -344,9 +343,10 @@ public class Doc_Order extends Doc { updateProductPO(as); - BigDecimal grossAmt = getAmount(Doc.AMTTYPE_Gross); + //BigDecimal grossAmt = getAmount(Doc.AMTTYPE_Gross); // Commitment + @SuppressWarnings("unused") FactLine fl = null; if (as.isCreatePOCommitment()) { @@ -416,6 +416,7 @@ public class Doc_Order extends Doc else if (getDocumentType().equals(DOCTYPE_SOrder)) { // Commitment + @SuppressWarnings("unused") FactLine fl = null; if (as.isCreateSOCommitment()) { @@ -600,6 +601,7 @@ public class Doc_Order extends Doc C_InvoiceLine_ID); BigDecimal total = Env.ZERO; + @SuppressWarnings("unused") FactLine fl = null; int C_Currency_ID = -1; for (int i = 0; i < commitments.length; i++) @@ -740,6 +742,7 @@ public class Doc_Order extends Doc M_InOutLine_ID); BigDecimal total = Env.ZERO; + @SuppressWarnings("unused") FactLine fl = null; int C_Currency_ID = -1; for (int i = 0; i < commitments.length; i++) diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_Production.java b/org.adempiere.base/src/org/compiere/acct/Doc_Production.java index 334459ddc2..0579f2e251 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_Production.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_Production.java @@ -19,7 +19,6 @@ package org.compiere.acct; import java.math.BigDecimal; import java.sql.PreparedStatement; import java.sql.ResultSet; -import java.sql.SQLException; import java.util.ArrayList; import java.util.logging.Level; @@ -30,7 +29,6 @@ import org.compiere.model.MCostDetail; import org.compiere.model.ProductCost; import org.compiere.model.X_M_Production; import org.compiere.model.X_M_ProductionLine; -import org.compiere.model.X_M_ProductionPlan; import org.compiere.util.DB; import org.compiere.util.Env; diff --git a/org.adempiere.base/src/org/compiere/acct/Doc_Requisition.java b/org.adempiere.base/src/org/compiere/acct/Doc_Requisition.java index 5f6dc9e857..1337f51995 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc_Requisition.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc_Requisition.java @@ -86,7 +86,7 @@ public class Doc_Requisition extends Doc DocLine docLine = new DocLine (line, this); BigDecimal Qty = line.getQty(); docLine.setQty (Qty, false); - BigDecimal PriceActual = line.getPriceActual(); + //BigDecimal PriceActual = line.getPriceActual(); BigDecimal LineNetAmt = line.getLineNetAmt(); docLine.setAmount (LineNetAmt); // DR list.add (docLine); @@ -125,6 +125,7 @@ public class Doc_Requisition extends Doc Fact fact = new Fact (this, as, Fact.POST_Reservation); setC_Currency_ID(as.getC_Currency_ID()); // + @SuppressWarnings("unused") BigDecimal grossAmt = getAmount (Doc.AMTTYPE_Gross); // Commitment if (as.isCreateReservation ()) diff --git a/org.adempiere.base/src/org/compiere/acct/ProductInfo.java b/org.adempiere.base/src/org/compiere/acct/ProductInfo.java index c29b883d2f..3ed89e8aa5 100644 --- a/org.adempiere.base/src/org/compiere/acct/ProductInfo.java +++ b/org.adempiere.base/src/org/compiere/acct/ProductInfo.java @@ -22,8 +22,6 @@ import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Level; -import org.compiere.model.MAcctSchema; -import org.compiere.model.MConversionRate; import org.compiere.model.MProduct; import org.compiere.model.MUOMConversion; import org.compiere.util.CLogger; @@ -52,10 +50,13 @@ public class ProductInfo /** The Product Key */ private int m_M_Product_ID = 0; /** Transaction */ + @SuppressWarnings("unused") private String m_trxName = null; // Product Info + @SuppressWarnings("unused") private int m_AD_Client_ID = 0; + @SuppressWarnings("unused") private int m_AD_Org_ID = 0; private String m_productType = null; @@ -234,7 +235,7 @@ public class ProductInfo * @param onlyPOPriceList use only PO price list * @return po price */ - private BigDecimal getPriceList (MAcctSchema as, boolean onlyPOPriceList) + /*private BigDecimal getPriceList (MAcctSchema as, boolean onlyPOPriceList) { StringBuilder sql = new StringBuilder ( "SELECT pl.C_Currency_ID, pp.PriceList, pp.PriceStd, pp.PriceLimit ") @@ -287,14 +288,14 @@ public class ProductInfo price, C_Currency_ID, as.getC_Currency_ID(), as.getAD_Client_ID(), 0); return price; - } // getPOPrice + } // getPOPrice*/ /** * Get PO Cost from Purchase Info - and convert it to AcctSchema Currency * @param as accounting schema * @return po cost */ - private BigDecimal getPOCost (MAcctSchema as) + /*private BigDecimal getPOCost (MAcctSchema as) { String sql = "SELECT C_Currency_ID, PriceList,PricePO,PriceLastPO " + "FROM M_Product_PO WHERE M_Product_ID=? " @@ -341,6 +342,6 @@ public class ProductInfo cost = MConversionRate.convert (as.getCtx(), cost, C_Currency_ID, as.getC_Currency_ID(), m_AD_Client_ID, m_AD_Org_ID); return cost; - } // getPOCost + } // getPOCost*/ } // ProductInfo diff --git a/org.adempiere.base/src/org/compiere/db/CConnection.java b/org.adempiere.base/src/org/compiere/db/CConnection.java index c74ec35c95..a70c267353 100644 --- a/org.adempiere.base/src/org/compiere/db/CConnection.java +++ b/org.adempiere.base/src/org/compiere/db/CConnection.java @@ -1295,14 +1295,14 @@ public class CConnection implements Serializable, Cloneable // if (!Ini.isClient() // Server // && trxLevel != Connection.TRANSACTION_READ_COMMITTED) // PO_LOB.save() // { - Exception ee = null; + //Exception ee = null; try { conn = m_db.getCachedConnection(this, autoCommit, transactionIsolation); } catch (Exception e) { - ee = e; + //ee = e; } // Verify Connection if (conn != null) diff --git a/org.adempiere.base/src/org/compiere/db/CreateAdempiere.java b/org.adempiere.base/src/org/compiere/db/CreateAdempiere.java index 54c82b4ab9..0eb2d6164c 100644 --- a/org.adempiere.base/src/org/compiere/db/CreateAdempiere.java +++ b/org.adempiere.base/src/org/compiere/db/CreateAdempiere.java @@ -377,9 +377,10 @@ public class CreateAdempiere } sb.append(columnName).append(" "); // Data Type & Precision - int sqlType = sourceColumns.getInt ("DATA_TYPE"); // sql.Types + //int sqlType = sourceColumns.getInt ("DATA_TYPE"); // sql.Types String typeName = sourceColumns.getString ("TYPE_NAME"); // DB Dependent int size = sourceColumns.getInt ("COLUMN_SIZE"); + @SuppressWarnings("unused") int decDigits = sourceColumns.getInt("DECIMAL_DIGITS"); if (sourceColumns.wasNull()) decDigits = -1; @@ -494,6 +495,7 @@ public class CreateAdempiere String table = tableName.toUpperCase(); try { + @SuppressWarnings("unused") ResultSet sourceIndex = md.getIndexInfo(catalog, schema, table, false, false); } diff --git a/org.adempiere.base/src/org/compiere/dbPort/Convert.java b/org.adempiere.base/src/org/compiere/dbPort/Convert.java index 6c94b6114a..494449eb49 100644 --- a/org.adempiere.base/src/org/compiere/dbPort/Convert.java +++ b/org.adempiere.base/src/org/compiere/dbPort/Convert.java @@ -323,7 +323,6 @@ public abstract class Convert * @return string */ protected String recoverQuotedStrings(String retValue, VectorretVars) { - StringBuilder sb = new StringBuilder(); for (int i = 0; i < retVars.size(); i++) { //hengsin, special character in replacement can cause exception String replacement = (String) retVars.get(i); diff --git a/org.adempiere.base/src/org/compiere/model/GridTab.java b/org.adempiere.base/src/org/compiere/model/GridTab.java index 0d95008455..d28f965484 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTab.java +++ b/org.adempiere.base/src/org/compiere/model/GridTab.java @@ -1411,7 +1411,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable * Get Tree ID of this tab * @return ID */ - private int getTreeID() + /*private int getTreeID() { log.fine(m_vo.TableName); String SQL = "SELECT * FROM AD_ClientInfo WHERE AD_Client=" @@ -1431,7 +1431,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable else if (m_vo.TableName.equals("C_Project")) return 60; // PJ return 0; - } // getTreeID + } // getTreeID*/ /** * Returns true if this is a detail record diff --git a/org.adempiere.base/src/org/compiere/model/GridTable.java b/org.adempiere.base/src/org/compiere/model/GridTable.java index 1c7d7398dc..391dbe77b3 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTable.java +++ b/org.adempiere.base/src/org/compiere/model/GridTable.java @@ -393,7 +393,7 @@ public class GridTable extends AbstractTableModel m_SQL_Count += where.toString(); if (m_withAccessControl) { - boolean ro = MRole.SQL_RO; + // boolean ro = MRole.SQL_RO; // if (!m_readOnly) // ro = MRole.SQL_RW; m_SQL = MRole.getDefault(m_ctx, false).addAccessSQL(m_SQL, diff --git a/org.adempiere.base/src/org/compiere/model/GridWorkbench.java b/org.adempiere.base/src/org/compiere/model/GridWorkbench.java index 7849b4bd2a..afefcf2b8d 100644 --- a/org.adempiere.base/src/org/compiere/model/GridWorkbench.java +++ b/org.adempiere.base/src/org/compiere/model/GridWorkbench.java @@ -450,7 +450,7 @@ public class GridWorkbench implements Serializable { if (index < 0 || index > m_windows.size()) throw new IllegalArgumentException ("Index invalid: " + index); - WBWindow win = (WBWindow)m_windows.get(index); + //WBWindow win = (WBWindow)m_windows.get(index); int retValue = -1; // if (win.mWindow != null && win.Type == TYPE_WINDOW) // return win.mWindow.getAD_Color_ID(); diff --git a/org.adempiere.base/src/org/compiere/model/MAchievement.java b/org.adempiere.base/src/org/compiere/model/MAchievement.java index b8b414dc45..4714b67a98 100644 --- a/org.adempiere.base/src/org/compiere/model/MAchievement.java +++ b/org.adempiere.base/src/org/compiere/model/MAchievement.java @@ -68,6 +68,7 @@ public class MAchievement extends X_PA_Achievement /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MAchievement.class); /************************************************************************** diff --git a/org.adempiere.base/src/org/compiere/model/MAlertProcessor.java b/org.adempiere.base/src/org/compiere/model/MAlertProcessor.java index 5fea63cfad..93c2e3d457 100644 --- a/org.adempiere.base/src/org/compiere/model/MAlertProcessor.java +++ b/org.adempiere.base/src/org/compiere/model/MAlertProcessor.java @@ -56,6 +56,7 @@ public class MAlertProcessor extends X_AD_AlertProcessor } // getActive /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MAlertProcessor.class); diff --git a/org.adempiere.base/src/org/compiere/model/MAllocationLine.java b/org.adempiere.base/src/org/compiere/model/MAllocationLine.java index 8803bdb2e9..c4fcf5948a 100644 --- a/org.adempiere.base/src/org/compiere/model/MAllocationLine.java +++ b/org.adempiere.base/src/org/compiere/model/MAllocationLine.java @@ -103,6 +103,7 @@ public class MAllocationLine extends X_C_AllocationLine } // MAllocationLine /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MAllocationLine.class); /** Invoice info */ private MInvoice m_invoice = null; diff --git a/org.adempiere.base/src/org/compiere/model/MAssetTransfer.java b/org.adempiere.base/src/org/compiere/model/MAssetTransfer.java index 8075d52a82..794f5997fd 100644 --- a/org.adempiere.base/src/org/compiere/model/MAssetTransfer.java +++ b/org.adempiere.base/src/org/compiere/model/MAssetTransfer.java @@ -207,6 +207,7 @@ implements DocAction assetAcct.setValidFrom(getDateAcct()); assetAcct.saveEx(); + @SuppressWarnings("unused") MDepreciationWorkfile wk = MDepreciationWorkfile.get(getCtx(), getA_Asset_ID(), getPostingType(), get_TrxName()); /* commented out by @win, deprecating existing design wk.buildDepreciation(); diff --git a/org.adempiere.base/src/org/compiere/model/MAttachment.java b/org.adempiere.base/src/org/compiere/model/MAttachment.java index a404cb4b24..d115d7d47e 100644 --- a/org.adempiere.base/src/org/compiere/model/MAttachment.java +++ b/org.adempiere.base/src/org/compiere/model/MAttachment.java @@ -66,6 +66,7 @@ public class MAttachment extends X_AD_Attachment } // get /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MAttachment.class); private MStorageProvider provider; diff --git a/org.adempiere.base/src/org/compiere/model/MBOM.java b/org.adempiere.base/src/org/compiere/model/MBOM.java index 79580638f5..a011ddc982 100644 --- a/org.adempiere.base/src/org/compiere/model/MBOM.java +++ b/org.adempiere.base/src/org/compiere/model/MBOM.java @@ -83,6 +83,7 @@ public class MBOM extends X_M_BOM private static CCache s_cache = new CCache(Table_Name, 20); /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MBOM.class); diff --git a/org.adempiere.base/src/org/compiere/model/MBOMProduct.java b/org.adempiere.base/src/org/compiere/model/MBOMProduct.java index 66467c7469..bbde8c3dbd 100644 --- a/org.adempiere.base/src/org/compiere/model/MBOMProduct.java +++ b/org.adempiere.base/src/org/compiere/model/MBOMProduct.java @@ -58,6 +58,7 @@ public class MBOMProduct extends X_M_BOMProduct } // getOfProduct /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MBOMProduct.class); /************************************************************************** diff --git a/org.adempiere.base/src/org/compiere/model/MBPBankAccount.java b/org.adempiere.base/src/org/compiere/model/MBPBankAccount.java index 63918a2d4e..e82db3abab 100644 --- a/org.adempiere.base/src/org/compiere/model/MBPBankAccount.java +++ b/org.adempiere.base/src/org/compiere/model/MBPBankAccount.java @@ -56,6 +56,7 @@ public class MBPBankAccount extends X_C_BP_BankAccount } // getOfBPartner /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger(MBPBankAccount.class); /************************************************************************** diff --git a/org.adempiere.base/src/org/compiere/model/MBankStatementMatcher.java b/org.adempiere.base/src/org/compiere/model/MBankStatementMatcher.java index 83e8a0d94b..d7f6ff8f5e 100644 --- a/org.adempiere.base/src/org/compiere/model/MBankStatementMatcher.java +++ b/org.adempiere.base/src/org/compiere/model/MBankStatementMatcher.java @@ -52,6 +52,7 @@ public class MBankStatementMatcher extends X_C_BankStatementMatcher String sql = MRole.getDefault(ctx, false).addAccessSQL( "SELECT * FROM C_BankStatementMatcher ORDER BY SeqNo", "C_BankStatementMatcher", MRole.SQL_NOTQUALIFIED, MRole.SQL_RO); + @SuppressWarnings("unused") int AD_Client_ID = Env.getAD_Client_ID(ctx); PreparedStatement pstmt = null; try diff --git a/org.adempiere.base/src/org/compiere/model/MCashBook.java b/org.adempiere.base/src/org/compiere/model/MCashBook.java index 51d62a6568..c5915e8c73 100644 --- a/org.adempiere.base/src/org/compiere/model/MCashBook.java +++ b/org.adempiere.base/src/org/compiere/model/MCashBook.java @@ -104,6 +104,7 @@ public class MCashBook extends X_C_CashBook private static CCache s_cache = new CCache(Table_Name, 20); /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MCashBook.class); /************************************************************************** diff --git a/org.adempiere.base/src/org/compiere/model/MCashPlan.java b/org.adempiere.base/src/org/compiere/model/MCashPlan.java index 08f0c88686..8a4b54a75d 100644 --- a/org.adempiere.base/src/org/compiere/model/MCashPlan.java +++ b/org.adempiere.base/src/org/compiere/model/MCashPlan.java @@ -38,6 +38,7 @@ public class MCashPlan extends X_C_CashPlan private static final long serialVersionUID = -3068952163785661012L; /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger(MCashPlan.class); /************************************************************************** diff --git a/org.adempiere.base/src/org/compiere/model/MCashPlanLine.java b/org.adempiere.base/src/org/compiere/model/MCashPlanLine.java index 085aab1d69..5a4eb39386 100644 --- a/org.adempiere.base/src/org/compiere/model/MCashPlanLine.java +++ b/org.adempiere.base/src/org/compiere/model/MCashPlanLine.java @@ -35,6 +35,7 @@ public class MCashPlanLine extends X_C_CashPlanLine private static final long serialVersionUID = 3897658515979106674L; /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger(MCashPlanLine.class); /************************************************************************** diff --git a/org.adempiere.base/src/org/compiere/model/MCity.java b/org.adempiere.base/src/org/compiere/model/MCity.java index f9260e60f0..f7e32d159c 100644 --- a/org.adempiere.base/src/org/compiere/model/MCity.java +++ b/org.adempiere.base/src/org/compiere/model/MCity.java @@ -61,6 +61,7 @@ public final class MCity extends X_C_City /** City Cache */ private static CCache s_Cities = new CCache(Table_Name, 20);; /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MCity.class); /** Region Cache */ diff --git a/org.adempiere.base/src/org/compiere/model/MClient.java b/org.adempiere.base/src/org/compiere/model/MClient.java index 7c15657a75..9fe61d72e9 100644 --- a/org.adempiere.base/src/org/compiere/model/MClient.java +++ b/org.adempiere.base/src/org/compiere/model/MClient.java @@ -885,7 +885,7 @@ public class MClient extends X_AD_Client * * @return boolean representing if client accounting is enabled and it's on a client */ - private static final String CLIENT_ACCOUNTING_DISABLED = "D"; + //private static final String CLIENT_ACCOUNTING_DISABLED = "D"; private static final String CLIENT_ACCOUNTING_QUEUE = "Q"; private static final String CLIENT_ACCOUNTING_IMMEDIATE = "I"; diff --git a/org.adempiere.base/src/org/compiere/model/MClientShare.java b/org.adempiere.base/src/org/compiere/model/MClientShare.java index 19d69d73a7..d4089dc156 100644 --- a/org.adempiere.base/src/org/compiere/model/MClientShare.java +++ b/org.adempiere.base/src/org/compiere/model/MClientShare.java @@ -256,7 +256,7 @@ public class MClientShare extends X_AD_ClientShare ResultSet rs = pstmt.executeQuery (); while (rs.next ()) { - int AD_Table_ID = rs.getInt(1); + //int AD_Table_ID = rs.getInt(1); String TableName = rs.getString(2); if (info.length() != 0) info.append(", "); diff --git a/org.adempiere.base/src/org/compiere/model/MContainer.java b/org.adempiere.base/src/org/compiere/model/MContainer.java index 6f1b0735aa..1cd050165e 100644 --- a/org.adempiere.base/src/org/compiere/model/MContainer.java +++ b/org.adempiere.base/src/org/compiere/model/MContainer.java @@ -144,6 +144,7 @@ public class MContainer extends X_CM_Container } // getContainers /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MContainer.class); diff --git a/org.adempiere.base/src/org/compiere/model/MContainerElement.java b/org.adempiere.base/src/org/compiere/model/MContainerElement.java index 676835c254..338778241e 100644 --- a/org.adempiere.base/src/org/compiere/model/MContainerElement.java +++ b/org.adempiere.base/src/org/compiere/model/MContainerElement.java @@ -35,6 +35,7 @@ public class MContainerElement extends X_CM_Container_Element private static final long serialVersionUID = 8487403111353473486L; /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MContainerElement.class); /** diff --git a/org.adempiere.base/src/org/compiere/model/MCostQueue.java b/org.adempiere.base/src/org/compiere/model/MCostQueue.java index b0e72ef9cf..b91c38575d 100644 --- a/org.adempiere.base/src/org/compiere/model/MCostQueue.java +++ b/org.adempiere.base/src/org/compiere/model/MCostQueue.java @@ -266,6 +266,7 @@ public class MCostQueue extends X_M_CostQueue // Negative Qty i.e. add if (remainingQty.signum() <= 0) { + @SuppressWarnings("unused") BigDecimal oldQty = queue.getCurrentQty(); lastPrice = queue.getCurrentCostPrice(); BigDecimal costBatch = lastPrice.multiply(remainingQty); @@ -281,6 +282,7 @@ public class MCostQueue extends X_M_CostQueue BigDecimal reduction = remainingQty; if (reduction.compareTo(queue.getCurrentQty()) > 0) reduction = queue.getCurrentQty(); + @SuppressWarnings("unused") BigDecimal oldQty = queue.getCurrentQty(); lastPrice = queue.getCurrentCostPrice(); BigDecimal costBatch = lastPrice.multiply(reduction); diff --git a/org.adempiere.base/src/org/compiere/model/MCountry.java b/org.adempiere.base/src/org/compiere/model/MCountry.java index f1a4674149..2bed6fcefd 100644 --- a/org.adempiere.base/src/org/compiere/model/MCountry.java +++ b/org.adempiere.base/src/org/compiere/model/MCountry.java @@ -165,6 +165,7 @@ public final class MCountry extends X_C_Country } // setDisplayLanguage /** Display Language */ + @SuppressWarnings("unused") private static String s_AD_Language = null; /** Country Cache */ diff --git a/org.adempiere.base/src/org/compiere/model/MCurrencyAcct.java b/org.adempiere.base/src/org/compiere/model/MCurrencyAcct.java index d51b802b48..1cf80b59da 100644 --- a/org.adempiere.base/src/org/compiere/model/MCurrencyAcct.java +++ b/org.adempiere.base/src/org/compiere/model/MCurrencyAcct.java @@ -34,6 +34,7 @@ public class MCurrencyAcct extends X_C_Currency_Acct */ private static final long serialVersionUID = 2256532431388781618L; /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger(MCurrencyAcct.class); /** diff --git a/org.adempiere.base/src/org/compiere/model/MDepreciation.java b/org.adempiere.base/src/org/compiere/model/MDepreciation.java index 21f1524153..f3e91d9eb6 100644 --- a/org.adempiere.base/src/org/compiere/model/MDepreciation.java +++ b/org.adempiere.base/src/org/compiere/model/MDepreciation.java @@ -412,7 +412,7 @@ public class MDepreciation extends X_A_Depreciation * @return coeficient K degressive method for * @see #apply_ARH_AD1(int, int, String, int, BigDecimal) */ - private static BigDecimal get_AD_K(int A_Life_Year) + /*private static BigDecimal get_AD_K(int A_Life_Year) { if (A_Life_Year < 2) { throw new IllegalArgumentException("@A_Life_Year@ = " + A_Life_Year + " < 2"); @@ -429,7 +429,7 @@ public class MDepreciation extends X_A_Depreciation else { return new BigDecimal(2.5); } - } + }*/ /** Calculate the value of depreciation over a month (period). In the last month of the year we add errors from the adjustment calculation * @param A_Current_Period current month's index diff --git a/org.adempiere.base/src/org/compiere/model/MDepreciationConvention.java b/org.adempiere.base/src/org/compiere/model/MDepreciationConvention.java index 3a626db2f0..e802c49a08 100644 --- a/org.adempiere.base/src/org/compiere/model/MDepreciationConvention.java +++ b/org.adempiere.base/src/org/compiere/model/MDepreciationConvention.java @@ -1,10 +1,14 @@ package org.compiere.model; -import java.sql.*; -import java.math.*; -import java.util.*; -import java.util.logging.*; -import org.compiere.model.*; -import org.compiere.util.*; +import java.math.BigDecimal; +import java.sql.CallableStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.Properties; +import java.util.logging.Level; + +import org.compiere.util.CCache; +import org.compiere.util.CLogMgt; +import org.compiere.util.DB; /** Convention for the first year of depreciation (ex. FMCON, FYCON ...) * @author Teo Sarca, SC Arhipac SRL diff --git a/org.adempiere.base/src/org/compiere/model/MDepreciationEntry.java b/org.adempiere.base/src/org/compiere/model/MDepreciationEntry.java index ba31fcca2c..2683591635 100644 --- a/org.adempiere.base/src/org/compiere/model/MDepreciationEntry.java +++ b/org.adempiere.base/src/org/compiere/model/MDepreciationEntry.java @@ -2,7 +2,6 @@ package org.compiere.model; import java.io.File; import java.math.BigDecimal; -import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.ArrayList; @@ -12,16 +11,9 @@ import java.util.Properties; import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; -import org.compiere.model.MAcctSchema; -import org.compiere.model.MClient; -import org.compiere.model.MPeriod; -import org.compiere.model.ModelValidationEngine; -import org.compiere.model.ModelValidator; -import org.compiere.model.Query; import org.compiere.process.DocAction; import org.compiere.process.DocumentEngine; import org.compiere.util.DB; -import org.compiere.util.Env; import org.compiere.util.TimeUtil; import org.compiere.util.Trx; import org.compiere.util.TrxRunnable; diff --git a/org.adempiere.base/src/org/compiere/model/MDepreciationWorkfile.java b/org.adempiere.base/src/org/compiere/model/MDepreciationWorkfile.java index 9b27c14030..8983b96107 100644 --- a/org.adempiere.base/src/org/compiere/model/MDepreciationWorkfile.java +++ b/org.adempiere.base/src/org/compiere/model/MDepreciationWorkfile.java @@ -3,13 +3,10 @@ package org.compiere.model; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; -import java.util.Calendar; import java.util.Collection; import java.util.Properties; -import org.adempiere.exceptions.AdempiereException; import org.apache.commons.collections.keyvalue.MultiKey; -import org.compiere.model.Query; import org.compiere.util.CCache; import org.compiere.util.CLogMgt; import org.compiere.util.CLogger; diff --git a/org.adempiere.base/src/org/compiere/model/MDiscountSchema.java b/org.adempiere.base/src/org/compiere/model/MDiscountSchema.java index bb0916b2d2..cbeef15962 100644 --- a/org.adempiere.base/src/org/compiere/model/MDiscountSchema.java +++ b/org.adempiere.base/src/org/compiere/model/MDiscountSchema.java @@ -254,7 +254,6 @@ public class MDiscountSchema extends X_M_DiscountSchema // Price Breaks getBreaks(false); - boolean found = false; BigDecimal Amt = Price.multiply(Qty); if (isQuantityBased()) log.finer("Qty=" + Qty + ",M_Product_ID=" + M_Product_ID + ",M_Product_Category_ID=" + M_Product_Category_ID); diff --git a/org.adempiere.base/src/org/compiere/model/MDistribution.java b/org.adempiere.base/src/org/compiere/model/MDistribution.java index 7dfe5c0644..b1e536c4ce 100644 --- a/org.adempiere.base/src/org/compiere/model/MDistribution.java +++ b/org.adempiere.base/src/org/compiere/model/MDistribution.java @@ -169,6 +169,7 @@ public class MDistribution extends X_GL_Distribution } // get /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MDistribution.class); /** Distributions by Account */ private static CCache s_accounts diff --git a/org.adempiere.base/src/org/compiere/model/MDunningRunEntry.java b/org.adempiere.base/src/org/compiere/model/MDunningRunEntry.java index b531d61321..30a7a47fa3 100644 --- a/org.adempiere.base/src/org/compiere/model/MDunningRunEntry.java +++ b/org.adempiere.base/src/org/compiere/model/MDunningRunEntry.java @@ -94,6 +94,7 @@ public class MDunningRunEntry extends X_C_DunningRunEntry } // MDunningRunEntry /** Parent */ + @SuppressWarnings("unused") private MDunningRun m_parent = null; /** @@ -279,12 +280,12 @@ public class MDunningRunEntry extends X_C_DunningRunEntry * Get Parent * @return Dunning Run */ - private MDunningRun getParent() + /*private MDunningRun getParent() { if (m_parent == null) m_parent = new MDunningRun(getCtx(), getC_DunningRun_ID (), get_TrxName()); return m_parent; - } // getParent + } // getParent*/ @Override protected boolean beforeSave (boolean newRecord) diff --git a/org.adempiere.base/src/org/compiere/model/MEXPFormat.java b/org.adempiere.base/src/org/compiere/model/MEXPFormat.java index 9c19dbc9d7..7a2c38259b 100644 --- a/org.adempiere.base/src/org/compiere/model/MEXPFormat.java +++ b/org.adempiere.base/src/org/compiere/model/MEXPFormat.java @@ -57,6 +57,7 @@ public class MEXPFormat extends X_EXP_Format { private static final long serialVersionUID = -5011042965945626099L; /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MEXPFormat.class); private static CCache s_cache = new CCache(MEXPFormat.Table_Name, 50 ); diff --git a/org.adempiere.base/src/org/compiere/model/MEXPProcessorParameter.java b/org.adempiere.base/src/org/compiere/model/MEXPProcessorParameter.java index 0a138af763..2a076f95e8 100644 --- a/org.adempiere.base/src/org/compiere/model/MEXPProcessorParameter.java +++ b/org.adempiere.base/src/org/compiere/model/MEXPProcessorParameter.java @@ -43,6 +43,7 @@ public class MEXPProcessorParameter extends X_EXP_ProcessorParameter { */ private static final long serialVersionUID = 2633307385854436092L; /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MEXPProcessorParameter.class); diff --git a/org.adempiere.base/src/org/compiere/model/MEXPProcessorType.java b/org.adempiere.base/src/org/compiere/model/MEXPProcessorType.java index 694fa0163e..7260eaceb1 100644 --- a/org.adempiere.base/src/org/compiere/model/MEXPProcessorType.java +++ b/org.adempiere.base/src/org/compiere/model/MEXPProcessorType.java @@ -43,6 +43,7 @@ public class MEXPProcessorType extends X_EXP_Processor_Type { */ private static final long serialVersionUID = -4987531346397814095L; /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MEXPProcessorType.class); diff --git a/org.adempiere.base/src/org/compiere/model/MInOut.java b/org.adempiere.base/src/org/compiere/model/MInOut.java index 530a3d58f4..0027fb3842 100644 --- a/org.adempiere.base/src/org/compiere/model/MInOut.java +++ b/org.adempiere.base/src/org/compiere/model/MInOut.java @@ -1392,6 +1392,7 @@ public class MInOut extends X_M_InOut implements DocAction } if (!sameWarehouse) { //correct qtyOrdered in warehouse of order + @SuppressWarnings("unused") MWarehouse wh = MWarehouse.get(getCtx(), oLine.getM_Warehouse_ID()); if (reservedDiff.signum() != 0) { if (!MStorageReservation.add(getCtx(), oLine.getM_Warehouse_ID(), @@ -1467,6 +1468,7 @@ public class MInOut extends X_M_InOut implements DocAction } if (!sameWarehouse) { //correct qtyOrdered in warehouse of order + @SuppressWarnings("unused") MWarehouse wh = MWarehouse.get(getCtx(), oLine.getM_Warehouse_ID()); if (QtySO.signum() != 0) { if (!MStorageReservation.add(getCtx(), oLine.getM_Warehouse_ID(), diff --git a/org.adempiere.base/src/org/compiere/model/MInventoryLine.java b/org.adempiere.base/src/org/compiere/model/MInventoryLine.java index fae17deae1..c32c25d212 100644 --- a/org.adempiere.base/src/org/compiere/model/MInventoryLine.java +++ b/org.adempiere.base/src/org/compiere/model/MInventoryLine.java @@ -348,7 +348,7 @@ public class MInventoryLine extends X_M_InventoryLine /** * Create Material Allocations for new Instances */ - private void createMA() + /*private void createMA() { MStorageOnHand[] storages = MStorageOnHand.getAll(getCtx(), getM_Product_ID(), getM_Locator_ID(), get_TrxName()); @@ -386,7 +386,7 @@ public class MInventoryLine extends X_M_InventoryLine log.warning("QtyBook=" + getQtyBook() + " corrected to Sum of MA=" + sum); setQtyBook(sum); } - } // createMA + } // createMA*/ /** * Is Internal Use Inventory diff --git a/org.adempiere.base/src/org/compiere/model/MIssueProject.java b/org.adempiere.base/src/org/compiere/model/MIssueProject.java index b21ee35b2a..c55265e418 100644 --- a/org.adempiere.base/src/org/compiere/model/MIssueProject.java +++ b/org.adempiere.base/src/org/compiere/model/MIssueProject.java @@ -128,13 +128,13 @@ public class MIssueProject extends X_R_IssueProject public void setA_Asset_ID (MIssue issue) { int A_Asset_ID = 0; - String sql = "SELECT * FROM A_Asset a " + /*String sql = "SELECT * FROM A_Asset a " + "WHERE EXISTS (SELECT * FROM A_Asset_Group ag " // Tracking Assets + "WHERE a.A_Asset_Group_ID=ag.A_Asset_Group_ID AND ag.IsTrackIssues='Y')" + " AND EXISTS (SELECT * FROM AD_User u " + "WHERE (a.C_BPartner_ID=u.C_BPartner_ID OR a.C_BPartnerSR_ID=u.C_BPartner_ID)" + " AND u.EMail=?)" // #1 EMail - + " AND (SerNo IS NULL OR SerNo=?)"; // #2 Name + + " AND (SerNo IS NULL OR SerNo=?)"; // #2 Name*/ diff --git a/org.adempiere.base/src/org/compiere/model/MJournalGenerator.java b/org.adempiere.base/src/org/compiere/model/MJournalGenerator.java index b274de6968..25f52810f6 100644 --- a/org.adempiere.base/src/org/compiere/model/MJournalGenerator.java +++ b/org.adempiere.base/src/org/compiere/model/MJournalGenerator.java @@ -43,6 +43,7 @@ public class MJournalGenerator extends X_GL_JournalGenerator private static final long serialVersionUID = -8044550395699815424L; /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger(MJournalGenerator.class); /************************************************************************** diff --git a/org.adempiere.base/src/org/compiere/model/MJournalGeneratorLine.java b/org.adempiere.base/src/org/compiere/model/MJournalGeneratorLine.java index 113b20f515..c6f74e75c9 100644 --- a/org.adempiere.base/src/org/compiere/model/MJournalGeneratorLine.java +++ b/org.adempiere.base/src/org/compiere/model/MJournalGeneratorLine.java @@ -43,6 +43,7 @@ public class MJournalGeneratorLine extends X_GL_JournalGeneratorLine private static final long serialVersionUID = -8151648371117046820L; /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger(MJournalGeneratorLine.class); /************************************************************************** diff --git a/org.adempiere.base/src/org/compiere/model/MJournalGeneratorSource.java b/org.adempiere.base/src/org/compiere/model/MJournalGeneratorSource.java index 6ebc83ea1a..e93c59c88e 100644 --- a/org.adempiere.base/src/org/compiere/model/MJournalGeneratorSource.java +++ b/org.adempiere.base/src/org/compiere/model/MJournalGeneratorSource.java @@ -42,6 +42,7 @@ public class MJournalGeneratorSource extends X_GL_JournalGeneratorSource private static final long serialVersionUID = 7489445330989092988L; /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger(MJournalGeneratorSource.class); /************************************************************************** diff --git a/org.adempiere.base/src/org/compiere/model/MLocatorLookup.java b/org.adempiere.base/src/org/compiere/model/MLocatorLookup.java index 608c046b78..26c2b17a36 100644 --- a/org.adempiere.base/src/org/compiere/model/MLocatorLookup.java +++ b/org.adempiere.base/src/org/compiere/model/MLocatorLookup.java @@ -348,7 +348,6 @@ public final class MLocatorLookup extends Lookup implements Serializable // Reset m_lookup.clear(); - int rows = 0; PreparedStatement pstmt = null; ResultSet rs = null; try diff --git a/org.adempiere.base/src/org/compiere/model/MMeasureCalc.java b/org.adempiere.base/src/org/compiere/model/MMeasureCalc.java index b8b745df45..c328e95574 100644 --- a/org.adempiere.base/src/org/compiere/model/MMeasureCalc.java +++ b/org.adempiere.base/src/org/compiere/model/MMeasureCalc.java @@ -107,6 +107,7 @@ public class MMeasureCalc extends X_PA_MeasureCalc { if (reportDate == null) reportDate = new Timestamp(System.currentTimeMillis()); + @SuppressWarnings("unused") String dateString = DB.TO_DATE(reportDate); // http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/functions207.htm#i1002084 String trunc = "DD"; diff --git a/org.adempiere.base/src/org/compiere/model/MMediaServer.java b/org.adempiere.base/src/org/compiere/model/MMediaServer.java index eed49600b1..5676f57aac 100644 --- a/org.adempiere.base/src/org/compiere/model/MMediaServer.java +++ b/org.adempiere.base/src/org/compiere/model/MMediaServer.java @@ -57,6 +57,7 @@ public class MMediaServer extends X_CM_Media_Server } // getMediaServer /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MMediaServer.class); diff --git a/org.adempiere.base/src/org/compiere/model/MMovementConfirm.java b/org.adempiere.base/src/org/compiere/model/MMovementConfirm.java index 50633e3a54..febdf16e50 100644 --- a/org.adempiere.base/src/org/compiere/model/MMovementConfirm.java +++ b/org.adempiere.base/src/org/compiere/model/MMovementConfirm.java @@ -314,12 +314,10 @@ public class MMovementConfirm extends X_M_MovementConfirm implements DocAction m_processMsg = "@NoLines@"; return DocAction.STATUS_Invalid; } - boolean difference = false; for (int i = 0; i < lines.length; i++) { if (!lines[i].isFullyConfirmed()) { - difference = true; break; } } diff --git a/org.adempiere.base/src/org/compiere/model/MOrderLine.java b/org.adempiere.base/src/org/compiere/model/MOrderLine.java index 334ea9b35a..d95b52a6f9 100644 --- a/org.adempiere.base/src/org/compiere/model/MOrderLine.java +++ b/org.adempiere.base/src/org/compiere/model/MOrderLine.java @@ -19,7 +19,6 @@ package org.compiere.model; import java.math.BigDecimal; import java.sql.PreparedStatement; import java.sql.ResultSet; -import java.sql.Timestamp; import java.util.Properties; import java.util.logging.Level; diff --git a/org.adempiere.base/src/org/compiere/model/MProductBOM.java b/org.adempiere.base/src/org/compiere/model/MProductBOM.java index b985c72f6e..8ca171faf8 100644 --- a/org.adempiere.base/src/org/compiere/model/MProductBOM.java +++ b/org.adempiere.base/src/org/compiere/model/MProductBOM.java @@ -73,6 +73,7 @@ public class MProductBOM extends X_M_Product_BOM } // getBOMLines /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger(MProductBOM.class); diff --git a/org.adempiere.base/src/org/compiere/model/MProductPrice.java b/org.adempiere.base/src/org/compiere/model/MProductPrice.java index 67e6c31b2d..b63fc7ca7c 100644 --- a/org.adempiere.base/src/org/compiere/model/MProductPrice.java +++ b/org.adempiere.base/src/org/compiere/model/MProductPrice.java @@ -55,6 +55,7 @@ public class MProductPrice extends X_M_ProductPrice } // get /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MProductPrice.class); /** diff --git a/org.adempiere.base/src/org/compiere/model/MProduction.java b/org.adempiere.base/src/org/compiere/model/MProduction.java index 88812a05fe..b4f3f52d0c 100644 --- a/org.adempiere.base/src/org/compiere/model/MProduction.java +++ b/org.adempiere.base/src/org/compiere/model/MProduction.java @@ -23,6 +23,7 @@ public class MProduction extends X_M_Production { * */ /** Log */ + @SuppressWarnings("unused") private static CLogger m_log = CLogger.getCLogger (MProduction.class); private int lineno; private int count; diff --git a/org.adempiere.base/src/org/compiere/model/MProjectType.java b/org.adempiere.base/src/org/compiere/model/MProjectType.java index f70c97f51e..8713802820 100644 --- a/org.adempiere.base/src/org/compiere/model/MProjectType.java +++ b/org.adempiere.base/src/org/compiere/model/MProjectType.java @@ -173,6 +173,7 @@ public class MProjectType extends X_C_ProjectType { if (reportDate == null) reportDate = new Timestamp(System.currentTimeMillis()); + @SuppressWarnings("unused") String dateString = DB.TO_DATE(reportDate); String trunc = "D"; if (MGoal.MEASUREDISPLAY_Year.equals(MeasureScope)) diff --git a/org.adempiere.base/src/org/compiere/model/MRecentItem.java b/org.adempiere.base/src/org/compiere/model/MRecentItem.java index 8dc7da3312..7d505f5853 100644 --- a/org.adempiere.base/src/org/compiere/model/MRecentItem.java +++ b/org.adempiere.base/src/org/compiere/model/MRecentItem.java @@ -41,6 +41,7 @@ public class MRecentItem extends X_AD_RecentItem /** Recent Item Cache */ private static CCache s_cache = new CCache(Table_Name, 10); /** Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger(MRecentItem.class); /************************************************************************** diff --git a/org.adempiere.base/src/org/compiere/model/MReplicationStrategy.java b/org.adempiere.base/src/org/compiere/model/MReplicationStrategy.java index cadddb38d9..94780d6e17 100644 --- a/org.adempiere.base/src/org/compiere/model/MReplicationStrategy.java +++ b/org.adempiere.base/src/org/compiere/model/MReplicationStrategy.java @@ -43,6 +43,7 @@ public class MReplicationStrategy extends X_AD_ReplicationStrategy { /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MReplicationStrategy.class); diff --git a/org.adempiere.base/src/org/compiere/model/MRequestType.java b/org.adempiere.base/src/org/compiere/model/MRequestType.java index d417d6843b..e447537429 100644 --- a/org.adempiere.base/src/org/compiere/model/MRequestType.java +++ b/org.adempiere.base/src/org/compiere/model/MRequestType.java @@ -63,6 +63,7 @@ public class MRequestType extends X_R_RequestType } // get /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger(MRequestType.class); /** Cache */ static private CCache s_cache = new CCache(Table_Name, 10); @@ -367,6 +368,7 @@ public class MRequestType extends X_R_RequestType { if (reportDate == null) reportDate = new Timestamp(System.currentTimeMillis()); + @SuppressWarnings("unused") String dateString = DB.TO_DATE(reportDate); String trunc = "D"; if (MGoal.MEASUREDISPLAY_Year.equals(MeasureScope)) diff --git a/org.adempiere.base/src/org/compiere/model/MRfQResponse.java b/org.adempiere.base/src/org/compiere/model/MRfQResponse.java index 3439d2ee8c..7050d22ab2 100644 --- a/org.adempiere.base/src/org/compiere/model/MRfQResponse.java +++ b/org.adempiere.base/src/org/compiere/model/MRfQResponse.java @@ -144,6 +144,7 @@ public class MRfQResponse extends X_C_RfQResponse if (get_ID() == 0) // save Response saveEx(); + @SuppressWarnings("unused") MRfQResponseLine line = new MRfQResponseLine (this, lines[i]); // line is not saved (dumped) if there are no Qtys } diff --git a/org.adempiere.base/src/org/compiere/model/MRule.java b/org.adempiere.base/src/org/compiere/model/MRule.java index 12a5e7ac54..bdf7b2adcf 100644 --- a/org.adempiere.base/src/org/compiere/model/MRule.java +++ b/org.adempiere.base/src/org/compiere/model/MRule.java @@ -126,6 +126,7 @@ public class MRule extends X_AD_Rule private static CCache s_cache = new CCache(Table_Name, 20); /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MRule.class); /* Engine Manager */ diff --git a/org.adempiere.base/src/org/compiere/model/MSequence.java b/org.adempiere.base/src/org/compiere/model/MSequence.java index 96da845401..d8873afa67 100644 --- a/org.adempiere.base/src/org/compiere/model/MSequence.java +++ b/org.adempiere.base/src/org/compiere/model/MSequence.java @@ -1196,6 +1196,7 @@ public class MSequence extends X_AD_Sequence { m_i = i; } + @SuppressWarnings("unused") private int m_i; /** diff --git a/org.adempiere.base/src/org/compiere/model/MSystem.java b/org.adempiere.base/src/org/compiere/model/MSystem.java index 31c29ecba4..fed85f1340 100644 --- a/org.adempiere.base/src/org/compiere/model/MSystem.java +++ b/org.adempiere.base/src/org/compiere/model/MSystem.java @@ -428,6 +428,7 @@ public class MSystem extends X_AD_System // log.fine(os.getName() + " " + os.getVersion() + " " + os.getArch() // + " Processors=" + os.getAvailableProcessors()); // Runtime + @SuppressWarnings("unused") RuntimeMXBean rt = ManagementFactory.getRuntimeMXBean(); // log.fine(rt.getName() + " (" + rt.getVmVersion() + ") Up=" + TimeUtil.formatElapsed(rt.getUptime())); // Memory @@ -437,6 +438,7 @@ public class MSystem extends X_AD_System Iterator it = list.iterator(); while (it.hasNext()) { + @SuppressWarnings("unused") MemoryPoolMXBean pool = (MemoryPoolMXBean)it.next(); /* log.finer(pool.getName() + " " + pool.getType() @@ -446,11 +448,13 @@ public class MSystem extends X_AD_System } else { + @SuppressWarnings("unused") MemoryMXBean memory = ManagementFactory.getMemoryMXBean(); // log.fine("VM: " + new CMemoryUsage(memory.getNonHeapMemoryUsage())); // log.fine("Heap: " + new CMemoryUsage(memory.getHeapMemoryUsage())); } // Thread + @SuppressWarnings("unused") ThreadMXBean th = ManagementFactory.getThreadMXBean(); /* log.fine("Threads=" + th.getThreadCount() diff --git a/org.adempiere.base/src/org/compiere/model/MTimeExpenseLine.java b/org.adempiere.base/src/org/compiere/model/MTimeExpenseLine.java index b4f7a1b264..57e6319f77 100644 --- a/org.adempiere.base/src/org/compiere/model/MTimeExpenseLine.java +++ b/org.adempiere.base/src/org/compiere/model/MTimeExpenseLine.java @@ -302,6 +302,7 @@ public class MTimeExpenseLine extends X_S_TimeExpenseLine + "(SELECT SUM(Qty*ConvertedAmt) FROM S_TimeExpenseLine tel " + "WHERE te.S_TimeExpense_ID=tel.S_TimeExpense_ID) " + "WHERE S_TimeExpense_ID=" + getS_TimeExpense_ID(); + @SuppressWarnings("unused") int no = DB.executeUpdate(sql, get_TrxName()); } // updateHeader diff --git a/org.adempiere.base/src/org/compiere/model/MTree.java b/org.adempiere.base/src/org/compiere/model/MTree.java index 059f60c09e..247e375ccf 100644 --- a/org.adempiere.base/src/org/compiere/model/MTree.java +++ b/org.adempiere.base/src/org/compiere/model/MTree.java @@ -520,7 +520,7 @@ public class MTree extends MTree_Base int AD_Form_ID = m_nodeRowSet.getInt(index++); int AD_Workflow_ID = m_nodeRowSet.getInt(index++); int AD_Task_ID = m_nodeRowSet.getInt(index++); - int AD_Workbench_ID = m_nodeRowSet.getInt(index++); + //int AD_Workbench_ID = m_nodeRowSet.getInt(index++); // MRole role = MRole.getDefault(getCtx(), false); Boolean access = null; @@ -609,7 +609,7 @@ public class MTree extends MTree_Base /** * Diagnostics: Print tree */ - private void dumpTree() + /*private void dumpTree() { Enumeration en = m_root.preorderEnumeration(); int count = 0; @@ -626,7 +626,7 @@ public class MTree extends MTree_Base count++; } System.out.println("Count=" + count); - } // diagPrintTree + } // diagPrintTree*/ /** * Get Root node diff --git a/org.adempiere.base/src/org/compiere/model/MUserRoles.java b/org.adempiere.base/src/org/compiere/model/MUserRoles.java index 9376910d70..3120cd2978 100644 --- a/org.adempiere.base/src/org/compiere/model/MUserRoles.java +++ b/org.adempiere.base/src/org/compiere/model/MUserRoles.java @@ -71,6 +71,7 @@ public class MUserRoles extends X_AD_User_Roles } // getOfUser /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MUserRoles.class); diff --git a/org.adempiere.base/src/org/compiere/model/MXIFAJournal.java b/org.adempiere.base/src/org/compiere/model/MXIFAJournal.java index a66446b4d4..b7871858e0 100644 --- a/org.adempiere.base/src/org/compiere/model/MXIFAJournal.java +++ b/org.adempiere.base/src/org/compiere/model/MXIFAJournal.java @@ -1,10 +1,10 @@ package org.compiere.model; -import java.util.*; -import java.sql.*; -import java.math.*; -import org.compiere.model.*; -import org.compiere.util.*; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.util.Properties; + +import org.compiere.util.Env; /** Generated Model for A_Asset ** @version $Id: X_A_Asset.java,v 1.88 2004/08/27 21:26:37 jjanke Exp $ */ public class MXIFAJournal extends X_I_FAJournal diff --git a/org.adempiere.base/src/org/compiere/model/PaymentProcessor.java b/org.adempiere.base/src/org/compiere/model/PaymentProcessor.java index d051758afc..9a604081bc 100644 --- a/org.adempiere.base/src/org/compiere/model/PaymentProcessor.java +++ b/org.adempiere.base/src/org/compiere/model/PaymentProcessor.java @@ -53,6 +53,7 @@ public abstract class PaymentProcessor /** Logger */ protected CLogger log = CLogger.getCLogger (getClass()); /** Payment Processor Logger */ + @SuppressWarnings("unused") static private CLogger s_log = CLogger.getCLogger (PaymentProcessor.class); /** Encoding (ISO-8859-1 - UTF-8) */ public static final String ENCODING = "UTF-8"; diff --git a/org.adempiere.base/src/org/compiere/model/ProductCost.java b/org.adempiere.base/src/org/compiere/model/ProductCost.java index 991e20cdf8..0d4fd9cd90 100644 --- a/org.adempiere.base/src/org/compiere/model/ProductCost.java +++ b/org.adempiere.base/src/org/compiere/model/ProductCost.java @@ -307,7 +307,7 @@ public class ProductCost * @param onlyPOPriceList use only PO price list * @return po price */ - private BigDecimal getPriceList (MAcctSchema as, boolean onlyPOPriceList) + /*private BigDecimal getPriceList (MAcctSchema as, boolean onlyPOPriceList) { StringBuilder sql = new StringBuilder ( "SELECT pl.C_Currency_ID, pp.PriceList, pp.PriceStd, pp.PriceLimit " @@ -360,14 +360,14 @@ public class ProductCost price, C_Currency_ID, as.getC_Currency_ID(), as.getAD_Client_ID(), 0); return price; - } // getPOPrice + } // getPOPrice*/ /** * Get PO Cost from Purchase Info - and convert it to AcctSchema Currency * @param as accounting schema * @return po cost */ - private BigDecimal getPOCost (MAcctSchema as) + /*private BigDecimal getPOCost (MAcctSchema as) { String sql = "SELECT C_Currency_ID, PriceList,PricePO,PriceLastPO " + "FROM M_Product_PO WHERE M_Product_ID=? " @@ -414,7 +414,7 @@ public class ProductCost cost = MConversionRate.convert (as.getCtx(), cost, C_Currency_ID, as.getC_Currency_ID(), as.getAD_Client_ID(), as.getAD_Org_ID()); return cost; - } // getPOCost + } // getPOCost*/ /** * String Representation diff --git a/org.adempiere.base/src/org/compiere/model/ScheduleUtil.java b/org.adempiere.base/src/org/compiere/model/ScheduleUtil.java index 49ccbebce5..cb4c13095e 100644 --- a/org.adempiere.base/src/org/compiere/model/ScheduleUtil.java +++ b/org.adempiere.base/src/org/compiere/model/ScheduleUtil.java @@ -55,6 +55,7 @@ public class ScheduleUtil private Properties m_ctx; private int m_S_Resource_ID; private boolean m_isAvailable = true; + @SuppressWarnings("unused") private boolean m_isSingleAssignment = true; private int m_S_ResourceType_ID = 0; private int m_C_UOM_ID = 0; @@ -776,6 +777,7 @@ public class ScheduleUtil throw new IllegalStateException("ResourceTypeName not set"); ArrayList list = new ArrayList(); + @SuppressWarnings("unused") MUOM uom = MUOM.get (m_ctx, m_C_UOM_ID); int minutes = MUOMConversion.convertToMinutes (m_ctx, m_C_UOM_ID, Env.ONE); log.config("Minutes=" + minutes); diff --git a/org.adempiere.base/src/org/compiere/model/StateChangeEvent.java b/org.adempiere.base/src/org/compiere/model/StateChangeEvent.java index f0592bd781..1049903435 100644 --- a/org.adempiere.base/src/org/compiere/model/StateChangeEvent.java +++ b/org.adempiere.base/src/org/compiere/model/StateChangeEvent.java @@ -26,6 +26,7 @@ public class StateChangeEvent extends EventObject { * */ private static final long serialVersionUID = 8536782772491762290L; + @SuppressWarnings("unused") private int eventType; /** diff --git a/org.adempiere.base/src/org/compiere/print/CPaper.java b/org.adempiere.base/src/org/compiere/print/CPaper.java index 2a5c3504cc..1f91a54c43 100644 --- a/org.adempiere.base/src/org/compiere/print/CPaper.java +++ b/org.adempiere.base/src/org/compiere/print/CPaper.java @@ -253,6 +253,7 @@ public class CPaper extends Paper { PrintRequestAttributeSet prats = getPrintRequestAttributeSet(); // Page Dialog + @SuppressWarnings("unused") PageFormat pf = job.pageDialog(prats); setPrintRequestAttributeSet(prats); return true; diff --git a/org.adempiere.base/src/org/compiere/print/DataEngine.java b/org.adempiere.base/src/org/compiere/print/DataEngine.java index 120fab2ddc..126ff99be8 100644 --- a/org.adempiere.base/src/org/compiere/print/DataEngine.java +++ b/org.adempiere.base/src/org/compiere/print/DataEngine.java @@ -103,6 +103,7 @@ public class DataEngine /** Running Total after .. lines */ private int m_runningTotalLines = -1; /** Print String */ + @SuppressWarnings("unused") private String m_runningTotalString = null; /** TrxName String */ private String m_trxName = null; @@ -290,7 +291,7 @@ public class DataEngine int FieldLength = rs.getInt(5); boolean IsMandatory = "Y".equals(rs.getString(6)); boolean IsKey = "Y".equals(rs.getString(7)); - boolean IsParent = "Y".equals(rs.getString(8)); + //boolean IsParent = "Y".equals(rs.getString(8)); // SQL GroupBy boolean IsGroupFunction = "Y".equals(rs.getString(9)); if (IsGroupFunction) @@ -321,7 +322,7 @@ public class DataEngine // General Info boolean IsPrinted = "Y".equals(rs.getString(15)); - int SortNo = rs.getInt(16); + //int SortNo = rs.getInt(16); boolean isPageBreak = "Y".equals(rs.getString(17)); String formatPattern = rs.getString(25); @@ -1175,6 +1176,7 @@ public class DataEngine org.compiere.Adempiere.startup(true); // DataEngine de = new DataEngine(null); + @SuppressWarnings("unused") DataEngine de = new DataEngine(Language.getLanguage("de_DE")); MQuery query = new MQuery(); query.addRestriction("AD_Table_ID", MQuery.LESS, 105); diff --git a/org.adempiere.base/src/org/compiere/print/PrintUtil.java b/org.adempiere.base/src/org/compiere/print/PrintUtil.java index ab82caf990..5925a3fe0f 100644 --- a/org.adempiere.base/src/org/compiere/print/PrintUtil.java +++ b/org.adempiere.base/src/org/compiere/print/PrintUtil.java @@ -492,7 +492,7 @@ public class PrintUtil /** * Test Stream Print Services */ - private static void testSPS() + /*private static void testSPS() { // dump (DocFlavor.INPUT_STREAM.GIF, DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMimeType()); // dump (DocFlavor.SERVICE_FORMATTED.PAGEABLE, DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMimeType()); @@ -529,7 +529,7 @@ public class PrintUtil // dump (null, DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMediaType()); // lists PS output // dump(null, null); - } // testSPS + } // testSPS*/ /************************************************************************** @@ -593,6 +593,7 @@ public class PrintUtil .append(Line_ID) .append(" WHERE AD_PrintFormatChild_ID IS NOT NULL AND AD_PrintFormat_ID=") .append(Header_ID); + @SuppressWarnings("unused") int no = DB.executeUpdate(sb.toString(), null); } // updatePrintFormatHeader diff --git a/org.adempiere.base/src/org/compiere/print/ServerReportCtl.java b/org.adempiere.base/src/org/compiere/print/ServerReportCtl.java index d20204aef2..691b90d567 100644 --- a/org.adempiere.base/src/org/compiere/print/ServerReportCtl.java +++ b/org.adempiere.base/src/org/compiere/print/ServerReportCtl.java @@ -234,6 +234,7 @@ public class ServerReportCtl { */ static public boolean startFinReport (ProcessInfo pi) { + @SuppressWarnings("unused") int AD_Client_ID = Env.getAD_Client_ID(Env.getCtx()); // Create Query from Parameters diff --git a/org.adempiere.base/src/org/compiere/print/layout/HTMLRenderer.java b/org.adempiere.base/src/org/compiere/print/layout/HTMLRenderer.java index e6e984f7d4..1d1aa8209b 100644 --- a/org.adempiere.base/src/org/compiere/print/layout/HTMLRenderer.java +++ b/org.adempiere.base/src/org/compiere/print/layout/HTMLRenderer.java @@ -22,9 +22,7 @@ import java.awt.Shape; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; -import java.io.ObjectInputStream; import java.io.ObjectOutput; -import java.io.ObjectOutputStream; import java.io.Reader; import java.io.StringReader; import java.util.logging.Level; diff --git a/org.adempiere.base/src/org/compiere/print/layout/StringElement.java b/org.adempiere.base/src/org/compiere/print/layout/StringElement.java index 463a4c14c4..82a050ee4b 100644 --- a/org.adempiere.base/src/org/compiere/print/layout/StringElement.java +++ b/org.adempiere.base/src/org/compiere/print/layout/StringElement.java @@ -340,16 +340,16 @@ public class StringElement extends PrintElement // Enlarge Size when aligned and max size is given if (p_FieldAlignmentType != null) { - boolean changed = false; + //boolean changed = false; if (p_height < p_maxHeight) { p_height = p_maxHeight; - changed = true; + //changed = true; } if (p_width < p_maxWidth) { p_width = p_maxWidth; - changed = true; + //changed = true; } // if (changed) // System.out.println("StringElement.calculate size - Width=" @@ -421,7 +421,6 @@ public class StringElement extends PrintElement AttributedString aString = null; AttributedCharacterIterator iter = null; - AttributedCharacterIterator iter2 = null; float xPos = (float)location.x; float yPos = (float)location.y; float yPen = 0f; diff --git a/org.adempiere.base/src/org/compiere/print/layout/TableElement.java b/org.adempiere.base/src/org/compiere/print/layout/TableElement.java index c5d7799320..7b44cde779 100644 --- a/org.adempiere.base/src/org/compiere/print/layout/TableElement.java +++ b/org.adempiere.base/src/org/compiere/print/layout/TableElement.java @@ -938,10 +938,10 @@ public class TableElement extends PrintElement * @param pageIndex zero based page index * @return page number */ - private int getPageNo (int pageIndex) + /*private int getPageNo (int pageIndex) { return pageIndex + m_pageNoStart; - } // getPageNo + } // getPageNo*/ /************************************************************************** @@ -1325,7 +1325,7 @@ public class TableElement extends PrintElement TextLayout layout = measurer.nextLayout(netWidth + 2); if (iter.getEndIndex() != measurer.getPosition()) fastDraw = false; - float lineHeight = layout.getAscent() + layout.getDescent() + layout.getLeading(); + //float lineHeight = layout.getAscent() + layout.getDescent() + layout.getLeading(); if (alignment.equals(MPrintFormatItem.FIELDALIGNMENTTYPE_Block)) { @@ -1667,10 +1667,10 @@ public class TableElement extends PrintElement * Insert empty Row after current Row * @param currentRow */ - private void insertRow (int currentRow) + /*private void insertRow (int currentRow) { - } // inserRow + } // inserRow*/ /** diff --git a/org.adempiere.base/src/org/compiere/tools/FileUtil.java b/org.adempiere.base/src/org/compiere/tools/FileUtil.java index 04cef763fb..0bf6ba52b4 100644 --- a/org.adempiere.base/src/org/compiere/tools/FileUtil.java +++ b/org.adempiere.base/src/org/compiere/tools/FileUtil.java @@ -294,8 +294,6 @@ public class FileUtil { String fileName = file.getAbsolutePath(); boolean isJava = fileName.endsWith(".java"); - boolean isJSP = fileName.endsWith(".jsp"); - boolean other = !(isJava || isJSP); BufferedReader in = new BufferedReader(new FileReader(file)); // File tmpFile = new File(fileName + ".tmp"); @@ -305,10 +303,8 @@ public class FileUtil boolean found = false; String line = null; - int lineNo = 0; while ((line = in.readLine()) != null) { - lineNo++; if (!found) { if (line.startsWith("package ") && isJava) diff --git a/org.adempiere.base/src/org/compiere/tools/RMIUtil.java b/org.adempiere.base/src/org/compiere/tools/RMIUtil.java index 28a1a06965..6958ea0b3b 100644 --- a/org.adempiere.base/src/org/compiere/tools/RMIUtil.java +++ b/org.adempiere.base/src/org/compiere/tools/RMIUtil.java @@ -16,9 +16,6 @@ *****************************************************************************/ package org.compiere.tools; -import java.io.IOException; -import java.io.InputStream; -import java.net.Socket; import java.rmi.Naming; import java.rmi.registry.LocateRegistry; import java.rmi.registry.Registry; @@ -71,7 +68,7 @@ public class RMIUtil } } // RMIUtil - private void testPort() + /*private void testPort() { try { @@ -93,7 +90,7 @@ public class RMIUtil ex.printStackTrace(); } - } + }*/ /** * Test diff --git a/org.adempiere.base/src/org/compiere/util/AmtInWords_TH.java b/org.adempiere.base/src/org/compiere/util/AmtInWords_TH.java index 19b94f1580..153985487b 100644 --- a/org.adempiere.base/src/org/compiere/util/AmtInWords_TH.java +++ b/org.adempiere.base/src/org/compiere/util/AmtInWords_TH.java @@ -350,7 +350,7 @@ public class AmtInWords_TH implements AmtInWords * Test Print * @param amt amount */ - private void print (String amt, String currency) + /*private void print (String amt, String currency) { try { @@ -360,7 +360,7 @@ public class AmtInWords_TH implements AmtInWords { e.printStackTrace(); } - } // print + } // print*/ /** * Test diff --git a/org.adempiere.base/src/org/compiere/util/AmtInWords_VI.java b/org.adempiere.base/src/org/compiere/util/AmtInWords_VI.java index 4295fe2321..9aa5be7843 100644 --- a/org.adempiere.base/src/org/compiere/util/AmtInWords_VI.java +++ b/org.adempiere.base/src/org/compiere/util/AmtInWords_VI.java @@ -267,13 +267,11 @@ public class AmtInWords_VI implements AmtInWords if (amount == null) return amount; // - int numberOfCommas = 0; int numberOfPeriods = 0; StringBuilder sb = new StringBuilder (); int period = amount.lastIndexOf ('.'); numberOfPeriods = amount.replaceAll("[^\\.]","").length(); int comma = amount.lastIndexOf (','); - numberOfCommas = amount.replaceAll("[^,]","").length(); int newpos = 0; String decamt =""; if (comma > period) //like 1.000.000,89 or 1,000,000 or 120,355 (a hundred and twenty 355/1000) diff --git a/org.adempiere.base/src/org/compiere/util/CLogErrorBuffer.java b/org.adempiere.base/src/org/compiere/util/CLogErrorBuffer.java index 0b00e06393..4bb957f810 100644 --- a/org.adempiere.base/src/org/compiere/util/CLogErrorBuffer.java +++ b/org.adempiere.base/src/org/compiere/util/CLogErrorBuffer.java @@ -183,7 +183,7 @@ public class CLogErrorBuffer extends Handler String loggerName = record.getLoggerName(); // class name if (loggerName == null) loggerName = ""; - String className = record.getSourceClassName(); // physical class + //String className = record.getSourceClassName(); // physical class String methodName = record.getSourceMethodName(); // if (DB.isConnected(false) && !methodName.equals("saveError") diff --git a/org.adempiere.base/src/org/compiere/util/CLogFormatter.java b/org.adempiere.base/src/org/compiere/util/CLogFormatter.java index 47de57ad14..0f118f9869 100644 --- a/org.adempiere.base/src/org/compiere/util/CLogFormatter.java +++ b/org.adempiere.base/src/org/compiere/util/CLogFormatter.java @@ -283,7 +283,6 @@ public class CLogFormatter extends Formatter */ private static void fillExceptionTrace (StringBuffer sb, String hdr, Throwable thrown) { - boolean firstError = hdr.length() == 0; sb.append(hdr) .append(thrown.toString()); if (thrown instanceof SQLException) diff --git a/org.adempiere.base/src/org/compiere/util/CacheMgt.java b/org.adempiere.base/src/org/compiere/util/CacheMgt.java index 8d112c54bb..f59c0a11ed 100644 --- a/org.adempiere.base/src/org/compiere/util/CacheMgt.java +++ b/org.adempiere.base/src/org/compiere/util/CacheMgt.java @@ -16,12 +16,10 @@ *****************************************************************************/ package org.compiere.util; -import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Map; -import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; diff --git a/org.adempiere.base/src/org/compiere/util/Login.java b/org.adempiere.base/src/org/compiere/util/Login.java index 53407ee63e..99b9eca9bf 100644 --- a/org.adempiere.base/src/org/compiere/util/Login.java +++ b/org.adempiere.base/src/org/compiere/util/Login.java @@ -98,6 +98,7 @@ public class Login // load org if (orgs != null && orgs.length > 0) { + @SuppressWarnings("unused") KeyNamePair[] whs = login.getWarehouses(orgs[0]); // login.loadPreferences(orgs[0], null, null, null); @@ -245,7 +246,7 @@ public class Login { log.info("User=" + app_user); - long start = System.currentTimeMillis(); + //long start = System.currentTimeMillis(); if (app_user == null) { log.warning("No Apps User"); @@ -452,7 +453,7 @@ public class Login rs = null; pstmt = null; } } - long ms = System.currentTimeMillis () - start; + //long ms = System.currentTimeMillis () - start; return retValue; } // getRoles @@ -711,7 +712,7 @@ public class Login rs = pstmt.executeQuery (); while (rs.next ()) { - int AD_Client_ID = rs.getInt(1); + //int AD_Client_ID = rs.getInt(1); int AD_Org_ID = rs.getInt(2); String Name = rs.getString(3); boolean summary = "Y".equals(rs.getString(4)); @@ -895,6 +896,7 @@ public class Login String retValue = ""; int AD_Client_ID = Env.getContextAsInt(m_ctx, "#AD_Client_ID"); int AD_Org_ID = org.getKey(); + @SuppressWarnings("unused") int AD_User_ID = Env.getContextAsInt(m_ctx, "#AD_User_ID"); int AD_Role_ID = Env.getContextAsInt(m_ctx, "#AD_Role_ID"); diff --git a/org.adempiere.base/src/org/compiere/util/SecureEngine.java b/org.adempiere.base/src/org/compiere/util/SecureEngine.java index d21d464e4d..796a532060 100644 --- a/org.adempiere.base/src/org/compiere/util/SecureEngine.java +++ b/org.adempiere.base/src/org/compiere/util/SecureEngine.java @@ -260,7 +260,7 @@ public class SecureEngine { init (System.getProperties()); // Ini Test - String ini1 = SecureInterface.CLEARVALUE_START + "test" + SecureInterface.CLEARVALUE_END; + //String ini1 = SecureInterface.CLEARVALUE_START + "test" + SecureInterface.CLEARVALUE_END; /** log.info("Decrypt clear test =" + test(decrypt(ini1), "test")); log.info("Decrypt clear 'test' =" + test(decrypt("'" + ini1 + "'"), "'test'")); diff --git a/org.adempiere.base/src/org/compiere/util/ZipUtil.java b/org.adempiere.base/src/org/compiere/util/ZipUtil.java index 418246c9ee..292240de04 100644 --- a/org.adempiere.base/src/org/compiere/util/ZipUtil.java +++ b/org.adempiere.base/src/org/compiere/util/ZipUtil.java @@ -62,6 +62,7 @@ public class ZipUtil open(file); } // ZipUtil + @SuppressWarnings("unused") private File m_file; private ZipFile m_zipFile; diff --git a/org.adempiere.base/src/org/compiere/wf/MWFNodeNext.java b/org.adempiere.base/src/org/compiere/wf/MWFNodeNext.java index dc66cacaf9..46faa4af47 100644 --- a/org.adempiere.base/src/org/compiere/wf/MWFNodeNext.java +++ b/org.adempiere.base/src/org/compiere/wf/MWFNodeNext.java @@ -20,7 +20,6 @@ import java.sql.ResultSet; import java.util.List; import java.util.Properties; -import org.compiere.model.MRefList; import org.compiere.model.PO; import org.compiere.model.Query; import org.compiere.model.X_AD_WF_NodeNext; diff --git a/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java b/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java index 852cbb453f..8b465fbba9 100644 --- a/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java +++ b/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java @@ -23,7 +23,6 @@ import java.util.Properties; import org.compiere.model.MAttributeSet; import org.compiere.model.MCharge; -import org.compiere.model.MClient; import org.compiere.model.MLocator; import org.compiere.model.MProduct; import org.compiere.model.MStorageOnHand; @@ -169,7 +168,7 @@ public class MDDOrderLine extends X_DD_OrderLine private boolean m_IsSOTrx = true; /** Cached Currency Precision */ - private Integer m_precision = null; + //private Integer m_precision = null; /** Product */ private MProduct m_product = null; /** Parent */ diff --git a/org.adempiere.base/src/org/idempiere/fa/model/CalloutA_Asset_Addition.java b/org.adempiere.base/src/org/idempiere/fa/model/CalloutA_Asset_Addition.java index 54a5461d08..5796e05d46 100644 --- a/org.adempiere.base/src/org/idempiere/fa/model/CalloutA_Asset_Addition.java +++ b/org.adempiere.base/src/org/idempiere/fa/model/CalloutA_Asset_Addition.java @@ -8,7 +8,6 @@ import org.compiere.model.CalloutEngine; import org.compiere.model.GridField; import org.compiere.model.GridTab; import org.compiere.model.I_A_Asset_Addition; -import org.compiere.model.MAsset; import org.compiere.model.MAssetAddition; import org.compiere.model.MConversionRateUtil; import org.compiere.model.MProject; diff --git a/org.adempiere.base/src/org/idempiere/fa/model/ModelValidator.java b/org.adempiere.base/src/org/idempiere/fa/model/ModelValidator.java index dac94b09c8..fa0e9474dd 100644 --- a/org.adempiere.base/src/org/idempiere/fa/model/ModelValidator.java +++ b/org.adempiere.base/src/org/idempiere/fa/model/ModelValidator.java @@ -3,42 +3,25 @@ */ package org.idempiere.fa.model; -import java.math.BigDecimal; -import java.math.RoundingMode; import java.util.List; -import org.adempiere.exceptions.AdempiereException; import org.adempiere.exceptions.FillMandatoryException; import org.compiere.acct.Fact; import org.compiere.model.MAcctSchema; -import org.compiere.model.MAsset; import org.compiere.model.MAssetAddition; -//import org.compiere.model.MAssetType; //commented by @win import org.compiere.model.MAssetDisposed; -import org.compiere.model.MAttributeSetInstance; import org.compiere.model.MClient; -import org.compiere.model.MCostDetail; -import org.compiere.model.MDocType; -import org.compiere.model.MInventory; -import org.compiere.model.MInventoryLine; import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceLine; import org.compiere.model.MMatchInv; -import org.compiere.model.MPayment; -import org.compiere.model.MPaymentAllocate; import org.compiere.model.MProduct; -import org.compiere.model.MProject; import org.compiere.model.ModelValidationEngine; import org.compiere.model.PO; import org.compiere.model.SetGetModel; import org.compiere.model.SetGetUtil; -import org.compiere.util.ArhRuntimeException; -import org.compiere.util.CLogMgt; import org.compiere.util.CLogger; import org.compiere.util.DB; -import org.compiere.util.Env; import org.idempiere.fa.exceptions.AssetInvoiceWithMixedLines_LRO; -import org.idempiere.fa.exceptions.AssetNotImplementedException; import org.idempiere.fa.exceptions.AssetProductStockedException; @@ -155,6 +138,7 @@ implements org.compiere.model.ModelValidator, org.compiere.model.FactsValidator // Set Asset Related Fields: if (-1 == changeType || TYPE_BEFORE_NEW == changeType || TYPE_BEFORE_CHANGE == changeType) { int invoice_id = SetGetUtil.get_AttrValueAsInt(m, MInvoiceLine.COLUMNNAME_C_Invoice_ID); + @SuppressWarnings("unused") boolean isSOTrx = DB.isSOTrx(MInvoice.Table_Name, MInvoice.COLUMNNAME_C_Invoice_ID+"="+invoice_id); boolean isAsset = false; /* comment by @win diff --git a/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java b/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java index 80359b3eda..612b8520c1 100644 --- a/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java +++ b/org.adempiere.base/src/org/idempiere/fa/process/ImportFixedAsset.java @@ -1,23 +1,14 @@ package org.idempiere.fa.process; import java.math.BigDecimal; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; import java.sql.Timestamp; import java.util.logging.Level; -import org.compiere.model.I_C_BPartner; import org.compiere.model.MAssetAddition; -import org.compiere.model.MBPartner; -import org.compiere.model.MBPartnerLocation; import org.compiere.model.MIFixedAsset; -import org.compiere.model.MLocation; -import org.compiere.model.MProduct; import org.compiere.model.POResultSet; import org.compiere.model.Query; import org.compiere.model.X_I_FixedAsset; -import org.compiere.process.DocAction; import org.compiere.process.ProcessInfoParameter; import org.compiere.process.SvrProcess; import org.compiere.util.DB; @@ -39,6 +30,7 @@ public class ImportFixedAsset extends SvrProcess private int p_AD_Org_ID = 0; /** Account Date */ + @SuppressWarnings("unused") private Timestamp p_DateAcct = null; /** Validate Only - only validate import data */ diff --git a/org.adempiere.extend/src/compiere/model/MyValidator.java b/org.adempiere.extend/src/compiere/model/MyValidator.java index 5fb87b1b2e..a33614ab55 100644 --- a/org.adempiere.extend/src/compiere/model/MyValidator.java +++ b/org.adempiere.extend/src/compiere/model/MyValidator.java @@ -16,11 +16,8 @@ *****************************************************************************/ package compiere.model; -import java.math.BigDecimal; - import org.compiere.model.MClient; import org.compiere.model.MOrder; -import org.compiere.model.MOrderLine; import org.compiere.model.MRole; import org.compiere.model.ModelValidationEngine; import org.compiere.model.ModelValidator; @@ -89,6 +86,7 @@ public class MyValidator implements ModelValidator { if (po.get_TableName().equals("C_Order") && type == TYPE_CHANGE) { + @SuppressWarnings("unused") MOrder order = (MOrder)po; log.info(po.toString()); } @@ -134,7 +132,7 @@ public class MyValidator implements ModelValidator * @param order order * @return error message or null */ - private String orderDiscount (MOrder order) + /*private String orderDiscount (MOrder order) { String DISCOUNT = "Discount"; int C_Tax_ID = 0; @@ -176,7 +174,7 @@ public class MyValidator implements ModelValidator log.info(discountLine.toString()); order.getLines(true, null); return null; - } // orderDiscount + } // orderDiscount*/ @@ -231,6 +229,7 @@ public class MyValidator implements ModelValidator log.info("Setting default Properties"); + @SuppressWarnings("unused") MRole role = MRole.get(Env.getCtx(), m_AD_Role_ID); // Example - if you don't want user to select auto commit property diff --git a/org.adempiere.install/src/org/compiere/install/ConfigurationData.java b/org.adempiere.install/src/org/compiere/install/ConfigurationData.java index 353b447ba2..80cde82ec7 100644 --- a/org.adempiere.install/src/org/compiere/install/ConfigurationData.java +++ b/org.adempiere.install/src/org/compiere/install/ConfigurationData.java @@ -1124,7 +1124,7 @@ public class ConfigurationData *************************************************************************/ /** Oracle directory */ - private static String DBTYPE_ORACLE = "Oracle"; + //private static String DBTYPE_ORACLE = "Oracle"; /** PostgreSQL */ private static String DBTYPE_POSTGRESQL = "PostgreSQL"; diff --git a/org.adempiere.install/src/org/compiere/install/ConfigurationPanel.java b/org.adempiere.install/src/org/compiere/install/ConfigurationPanel.java index 09e10939a0..120cc695b8 100644 --- a/org.adempiere.install/src/org/compiere/install/ConfigurationPanel.java +++ b/org.adempiere.install/src/org/compiere/install/ConfigurationPanel.java @@ -26,7 +26,6 @@ import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ResourceBundle; -import java.util.logging.Level; import javax.swing.ImageIcon; import javax.swing.JButton; @@ -44,7 +43,6 @@ import javax.swing.border.TitledBorder; import org.adempiere.install.DBConfigStatus; import org.adempiere.install.IDBConfigMonitor; -import org.apache.tools.ant.Main; import org.compiere.util.CLogger; /** diff --git a/org.adempiere.install/src/org/compiere/install/InstallApplication.java b/org.adempiere.install/src/org/compiere/install/InstallApplication.java index 1b01c24c85..88946296c5 100644 --- a/org.adempiere.install/src/org/compiere/install/InstallApplication.java +++ b/org.adempiere.install/src/org/compiere/install/InstallApplication.java @@ -18,7 +18,6 @@ import java.io.File; import org.apache.tools.ant.DefaultLogger; import org.apache.tools.ant.Project; import org.eclipse.ant.core.AntRunner; -import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.equinox.app.IApplication; import org.eclipse.equinox.app.IApplicationContext; diff --git a/org.adempiere.install/src/org/compiere/install/KeyStoreDialog.java b/org.adempiere.install/src/org/compiere/install/KeyStoreDialog.java index f1f3c4fc96..522c99134a 100644 --- a/org.adempiere.install/src/org/compiere/install/KeyStoreDialog.java +++ b/org.adempiere.install/src/org/compiere/install/KeyStoreDialog.java @@ -23,7 +23,6 @@ import java.awt.HeadlessException; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JFrame; diff --git a/org.adempiere.payment.processor/src/org/compiere/model/PP_Optimal.java b/org.adempiere.payment.processor/src/org/compiere/model/PP_Optimal.java index beaf5c3531..0cff0e7860 100644 --- a/org.adempiere.payment.processor/src/org/compiere/model/PP_Optimal.java +++ b/org.adempiere.payment.processor/src/org/compiere/model/PP_Optimal.java @@ -246,17 +246,26 @@ public class PP_Optimal extends PaymentProcessor String status = prop.getProperty(STATUS); m_ok = status != null && status.equals("SP"); // Successful Purchase String authCode = prop.getProperty(AUTH_CODE); + @SuppressWarnings("unused") String authTime = prop.getProperty(AUTH_TIME); // + @SuppressWarnings("unused") String errCode = prop.getProperty(ERROR_CODE); String errString = prop.getProperty(ERROR_STRING); + @SuppressWarnings("unused") String subError = prop.getProperty(SUB_ERROR); + @SuppressWarnings("unused") String subErrorString = prop.getProperty(SUB_ERROR_STRING); + @SuppressWarnings("unused") String actionCode = prop.getProperty("actionCode"); // + @SuppressWarnings("unused") String authorisedAmount = prop.getProperty(CURRENT_AMOUNT); + @SuppressWarnings("unused") String amount = prop.getProperty(AMOUNT); + @SuppressWarnings("unused") String avsInfo = prop.getProperty(AVS_INFO); + @SuppressWarnings("unused") String cvdInfo = prop.getProperty(CVD_INFO); log.fine("<- Status=" + status + ", AuthCode=" + authCode + ", Error=" + errString); diff --git a/org.adempiere.payment.processor/src/org/compiere/model/PP_PayFlowPro4.java b/org.adempiere.payment.processor/src/org/compiere/model/PP_PayFlowPro4.java index 30b4c38729..e89be6ca43 100644 --- a/org.adempiere.payment.processor/src/org/compiere/model/PP_PayFlowPro4.java +++ b/org.adempiere.payment.processor/src/org/compiere/model/PP_PayFlowPro4.java @@ -165,7 +165,6 @@ public final class PP_PayFlowPro4 extends PaymentProcessor */ public boolean process (String parameter) { - long start = System.currentTimeMillis(); StringBuilder param = new StringBuilder(parameter); // Usr/Pwd param diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/RecordInfo.java b/org.adempiere.ui.swing/src/org/compiere/apps/RecordInfo.java index 049a96d92a..de155c4d2a 100644 --- a/org.adempiere.ui.swing/src/org/compiere/apps/RecordInfo.java +++ b/org.adempiere.ui.swing/src/org/compiere/apps/RecordInfo.java @@ -92,6 +92,7 @@ public class RecordInfo extends CDialog private CPanel mainPanel = new CPanel (new BorderLayout(0,0)); + @SuppressWarnings("unused") private CPanel northPanel = new CPanel (); private CScrollPane scrollPane = new CScrollPane (); private VTable table = new VTable (); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/DelegatingServlet.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/DelegatingServlet.java index 89fb91fa98..06ec945ff0 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/DelegatingServlet.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/DelegatingServlet.java @@ -3,7 +3,6 @@ package org.adempiere.webui; import java.io.IOException; import java.util.Enumeration; -import javax.servlet.GenericServlet; import javax.servlet.ServletConfig; import javax.servlet.ServletContext; import javax.servlet.ServletException; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/Extensions.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/Extensions.java index 82a196438f..f47b3ac17e 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/Extensions.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/Extensions.java @@ -21,7 +21,6 @@ package org.adempiere.webui; import org.adempiere.base.Service; -import org.adempiere.base.ServiceQuery; import org.adempiere.webui.panel.IFormController; /** diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/TimelineEventFeed.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/TimelineEventFeed.java index 8d53dab442..1c33cd8e86 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/TimelineEventFeed.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/TimelineEventFeed.java @@ -67,7 +67,7 @@ public class TimelineEventFeed extends HttpServlet { String uuid = req.getParameter("uuid"); if (uuid == null || uuid.trim().length() == 0) return; - String timeLineId = req.getParameter("tlid"); + //String timeLineId = req.getParameter("tlid"); Date date = null; String dateParam = req.getParameter("date"); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/ValuePreference.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/ValuePreference.java index 9fde2d9ac9..aa32d6df9a 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/ValuePreference.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/ValuePreference.java @@ -112,6 +112,7 @@ public class ValuePreference extends Window implements EventListener int AD_User_ID = Env.getAD_User_ID(Env.getCtx()); // Create Editor + @SuppressWarnings("unused") ValuePreference vp = new ValuePreference (WindowNo, AD_Client_ID, AD_Org_ID, AD_User_ID, AD_Window_ID, Attribute, DisplayAttribute, Value, DisplayValue, @@ -153,7 +154,7 @@ public class ValuePreference extends Window implements EventListener /** The Name of the Editor */ public static final String NAME = "ValuePreference"; /** The Menu Icon */ - private static String ICON_URL = "images/VPreference16.png"; + //private static String ICON_URL = "images/VPreference16.png"; /** Logger */ private static CLogger log = CLogger.getCLogger(ValuePreference.class); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/WZoomAcross.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/WZoomAcross.java index 3c1c63aeab..a7256fc2e8 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/WZoomAcross.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/WZoomAcross.java @@ -16,14 +16,17 @@ *****************************************************************************/ package org.adempiere.webui; -import java.sql.*; -import java.util.*; -import java.util.logging.*; +import java.util.ArrayList; +import java.util.List; import org.adempiere.model.ZoomInfoFactory; import org.adempiere.webui.apps.AEnv; -import org.compiere.model.*; -import org.compiere.util.*; +import org.compiere.model.MQuery; +import org.compiere.model.PO; +import org.compiere.model.Query; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.EventListener; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java index da0d297da6..73cd9b9d6c 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/GridView.java @@ -29,7 +29,6 @@ import org.adempiere.webui.component.EditorBox; import org.adempiere.webui.component.Grid; import org.adempiere.webui.component.NumberBox; import org.adempiere.webui.editor.WEditor; -import org.adempiere.webui.event.TouchEventHelper; import org.adempiere.webui.util.SortComparator; import org.compiere.model.GridField; import org.compiere.model.GridTab; @@ -48,9 +47,9 @@ import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.Events; import org.zkoss.zk.ui.util.Clients; import org.zkoss.zul.Center; -import org.zkoss.zul.Frozen; import org.zkoss.zul.Column; import org.zkoss.zul.Div; +import org.zkoss.zul.Frozen; import org.zkoss.zul.North; import org.zkoss.zul.Paging; import org.zkoss.zul.Row; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ProcessButtonPopup.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ProcessButtonPopup.java index 92be49f7b2..06e4b19f4a 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ProcessButtonPopup.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ProcessButtonPopup.java @@ -6,7 +6,6 @@ package org.adempiere.webui.adwindow; import java.util.List; import org.adempiere.webui.component.Window; -import org.adempiere.webui.editor.WButtonEditor; import org.zkoss.zul.Button; import org.zkoss.zul.Vbox; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java index 3f0a531e24..3c9c7b0feb 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessDialog.java @@ -168,6 +168,7 @@ public class ProcessDialog extends Window implements EventListener, IProc Div div = new Div(); Hbox hbox = new Hbox(); + @SuppressWarnings("unused") String label = Msg.getMsg(Env.getCtx(), "Start"); // Invert - Unify OK/Cancel IDEMPIERE-77 //bOK = new Button(label.replaceAll("&", "")); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WAttributeGrid.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WAttributeGrid.java index f77b2e01f2..ff98237692 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WAttributeGrid.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WAttributeGrid.java @@ -43,7 +43,6 @@ import org.compiere.model.MAttributeValue; import org.compiere.model.MProduct; import org.compiere.model.MProductPrice; import org.compiere.model.MRole; -import org.compiere.model.MStorageOnHand; import org.compiere.model.MStorageReservation; import org.compiere.util.CLogger; import org.compiere.util.DB; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WBOMDrop.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WBOMDrop.java index 7797b17424..d02792374e 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WBOMDrop.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WBOMDrop.java @@ -83,6 +83,7 @@ public class WBOMDrop extends ADForm implements EventListener private BigDecimal m_qty = Env.ONE; /** Line Counter */ + @SuppressWarnings("unused") private int m_bomLine = 0; /** Logger */ @@ -100,7 +101,7 @@ public class WBOMDrop extends ADForm implements EventListener /** Alternative Group Lists */ private HashMap m_buttonGroups = new HashMap(); - private static final int WINDOW_WIDTH = 600; // width of the window + //private static final int WINDOW_WIDTH = 600; // width of the window private ConfirmPanel confirmPanel = new ConfirmPanel(true); private Grid selectionPanel = GridFactory.newGridLayout(); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCharge.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCharge.java index e683c6f9fc..46d398169b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCharge.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WCharge.java @@ -71,6 +71,7 @@ public class WCharge extends Charge implements IFormController, EventListener try { stmt = conn.createStatement(); + @SuppressWarnings("unused") boolean OK = stmt.execute(sql); int count = stmt.getUpdateCount(); if (count == -1) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WTreeMaintenance.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WTreeMaintenance.java index 6611d958b0..5a6d803aaa 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WTreeMaintenance.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WTreeMaintenance.java @@ -65,6 +65,7 @@ public class WTreeMaintenance extends TreeMaintenance implements IFormController /** * */ + @SuppressWarnings("unused") private static final long serialVersionUID = 3630156132596215136L; private CustomForm form = new CustomForm(); @@ -80,6 +81,7 @@ public class WTreeMaintenance extends TreeMaintenance implements IFormController private Checkbox cbAllNodes = new Checkbox (); private Label treeInfo = new Label (); // + @SuppressWarnings("unused") private Splitter splitPane = new Splitter(); private Tree centerTree; private Listbox centerList = new Listbox(); @@ -254,9 +256,9 @@ public class WTreeMaintenance extends TreeMaintenance implements IFormController bDelete.setEnabled(!m_tree.isAllNodes()); bDeleteAll.setEnabled(!m_tree.isAllNodes()); // - String fromClause = m_tree.getSourceTableName(false); // fully qualified + /*String fromClause = m_tree.getSourceTableName(false); // fully qualified String columnNameX = m_tree.getSourceTableName(true); - String actionColor = m_tree.getActionColorName(); + String actionColor = m_tree.getActionColorName();*/ // List SimpleListModel model = new SimpleListModel(); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WTrxMaterial.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WTrxMaterial.java index fcaeb786ad..f10c79b6b6 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WTrxMaterial.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WTrxMaterial.java @@ -68,6 +68,7 @@ public class WTrxMaterial extends TrxMaterial /** * */ + @SuppressWarnings("unused") private static final long serialVersionUID = -2141669182129214237L; private CustomForm form = new CustomForm(); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ADTreeOnDropListener.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ADTreeOnDropListener.java index cb1d7212f5..f621ecb58e 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ADTreeOnDropListener.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ADTreeOnDropListener.java @@ -87,8 +87,6 @@ public class ADTreeOnDropListener implements EventListener { MTreeNode toMNode = (MTreeNode) toNode.getData(); - DefaultTreeNode newParent; - int index; if (!toMNode.isSummary()) // drop on a child node { moveNode(movingNode, toNode, false); @@ -159,6 +157,7 @@ public class ADTreeOnDropListener implements EventListener { Trx trx = Trx.get (Trx.createTrxName("ADTree"), true); try { + @SuppressWarnings("unused") int no = 0; MTreeNode oldMParent = (MTreeNode) oldParent.getData(); for (int i = 0; i < oldParent.getChildCount(); i++) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/test/ListModelTableTest.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/test/ListModelTableTest.java index 03a569dff6..1340ad0d6d 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/test/ListModelTableTest.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/test/ListModelTableTest.java @@ -125,6 +125,7 @@ public class ListModelTableTest implements WTableModelListener { final int invalidRow = 2; final int noColumns = 2; + @SuppressWarnings("unused") Object data; assertEquals(noColumns, m_table.getNoColumns()); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WAssignmentEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WAssignmentEditor.java index e30b005be2..218894f033 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WAssignmentEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WAssignmentEditor.java @@ -169,6 +169,7 @@ public class WAssignmentEditor extends WEditor implements ContextMenuListener { // Start InfoSchedule directly else { + @SuppressWarnings("unused") final InfoSchedule is = new InfoSchedule(ma, true, new Callback() { @Override public void onCallback(MResourceAssignment ma) { diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/CustomizeGridViewPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/CustomizeGridViewPanel.java index 37e0f42296..09908fabf6 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/CustomizeGridViewPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/CustomizeGridViewPanel.java @@ -268,8 +268,9 @@ public class CustomizeGridViewPanel extends Panel south.setStyle("border: none; margin: none"); Panel southPanel = new Panel(); south.setHeight("35px"); - southPanel.setAlign("Right"); + southPanel.setAlign("Right"); southPanel.setStyle("margin-top: 2px; margin-right: 4px"); + @SuppressWarnings("unused") String label = Msg.getMsg(Env.getCtx(), "save"); Button bOK = new Button(); bOK.setImage("/images/Ok16.png"); @@ -503,7 +504,7 @@ public class CustomizeGridViewPanel extends Panel { log.fine(""); // yesList - int index = 0; + //int index = 0; boolean ok = true; StringBuilder custom = new StringBuilder(); for (int i = 0; i < yesModel.getSize(); i++) @@ -511,7 +512,7 @@ public class CustomizeGridViewPanel extends Panel ListElement pp = (ListElement)yesModel.getElementAt(i); if (!pp.isUpdateable()) continue; - index += 10; + //index += 10; custom.append(pp.getKey()); custom.append(","); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HeaderPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HeaderPanel.java index f075a876af..d8d72f5a64 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HeaderPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HeaderPanel.java @@ -19,7 +19,6 @@ package org.adempiere.webui.panel; import org.adempiere.webui.LayoutUtils; import org.adempiere.webui.component.Panel; -import org.adempiere.webui.component.ToolBarButton; import org.adempiere.webui.theme.ThemeManager; import org.adempiere.webui.window.AboutWindow; import org.compiere.util.Env; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java index f6ffea2b04..a752a2a4c7 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/MenuTreeFilterPanel.java @@ -21,7 +21,9 @@ public class MenuTreeFilterPanel extends Popup implements EventListener, public static final String MENU_TREE_FILTER_CHECKED_QUEUE = "MENU_TREE_FILTER_CHECKED_QUEUE"; + @SuppressWarnings("unused") private Tree tree; + @SuppressWarnings("unused") private TreeSearchPanel searchPanel; public MenuTreeFilterPanel(Tree tree, TreeSearchPanel panel) { diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TimeoutPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TimeoutPanel.java index 03f5861b42..f4eb4cc671 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TimeoutPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TimeoutPanel.java @@ -17,8 +17,6 @@ package org.adempiere.webui.panel; import org.adempiere.webui.session.SessionManager; import org.zkoss.zhtml.Script; import org.zkoss.zk.ui.Executions; -import org.zkoss.zk.ui.Session; -import org.zkoss.zk.ui.Sessions; import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.Events; import org.zkoss.zul.Borderlayout; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WRC1DisplayFieldsPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WRC1DisplayFieldsPanel.java index 1ca8d4ff5e..a62f3bb914 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WRC1DisplayFieldsPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WRC1DisplayFieldsPanel.java @@ -14,8 +14,6 @@ package org.adempiere.webui.panel; -import org.adempiere.webui.LayoutUtils; -import org.adempiere.webui.apps.AEnv; import org.adempiere.webui.component.Checkbox; import org.adempiere.webui.component.Column; import org.adempiere.webui.component.Columns; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WRC5SummaryFieldsPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WRC5SummaryFieldsPanel.java index 461dbb5162..c119b2e11a 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WRC5SummaryFieldsPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WRC5SummaryFieldsPanel.java @@ -15,8 +15,6 @@ package org.adempiere.webui.panel; import java.util.ArrayList; -import org.adempiere.webui.LayoutUtils; -import org.adempiere.webui.apps.AEnv; import org.adempiere.webui.component.Checkbox; import org.adempiere.webui.component.Column; import org.adempiere.webui.component.Columns; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WSchedule.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WSchedule.java index c27d9bbc19..a1ce7095e8 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WSchedule.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WSchedule.java @@ -87,6 +87,7 @@ public class WSchedule extends Panel implements EventListener private Bandinfo mthBand; + @SuppressWarnings("unused") private Date m_center; private MResourceAssignment _assignmentDialogResult; @@ -202,7 +203,9 @@ public class WSchedule extends Panel implements EventListener } } else if (event instanceof BandScrollEvent){ BandScrollEvent e = (BandScrollEvent) event; + @SuppressWarnings("unused") Date end = e.getMax(); + @SuppressWarnings("unused") Date start = e.getMin(); Date mid = e.getCenter(); if (mid != null) { diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WAccountDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WAccountDialog.java index 6ec4d5c3e7..b922167979 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WAccountDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WAccountDialog.java @@ -153,9 +153,10 @@ public final class WAccountDialog extends Window // private Label f_Description = new Label (""); - private int m_line = 0; + //private int m_line = 0; private boolean m_newRow = true; // + @SuppressWarnings("unused") private Vbox panel = new Vbox(); private ConfirmPanel confirmPanel = new ConfirmPanel(true); private StatusBarPanel statusBar = new StatusBarPanel(); @@ -305,8 +306,6 @@ public final class WAccountDialog extends Window m_rows = new Rows(); m_rows.setParent(parameterLayout); - int TabNo = 0; - // Alias if (s_AcctSchema.isHasAlias()) { diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WAssignmentDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WAssignmentDialog.java index e45c28b977..30b4305122 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WAssignmentDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WAssignmentDialog.java @@ -414,6 +414,7 @@ public class WAssignmentDialog extends Window implements EventListener public void onShowSchedule() { + @SuppressWarnings("unused") InfoSchedule is = new InfoSchedule (m_mAssignment, true, new Callback() { @Override public void onCallback(MResourceAssignment result) { diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WLocatorDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WLocatorDialog.java index a5b6396ea7..454e89d211 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WLocatorDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WLocatorDialog.java @@ -91,13 +91,16 @@ public class WLocatorDialog extends Window implements EventListener private int m_WindowNo; private int m_M_Locator_ID; + @SuppressWarnings("unused") private int m_AD_Client_ID; + @SuppressWarnings("unused") private int m_AD_Org_ID; private int m_only_Warehouse_ID; private int m_M_Warehouse_ID; private boolean m_mandatory; + @SuppressWarnings("unused") private String m_M_WarehouseName; private String m_M_WarehouseValue; private String m_Separator; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WPAttributeDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WPAttributeDialog.java index f29c613452..e1e40d37a7 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WPAttributeDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WPAttributeDialog.java @@ -164,7 +164,7 @@ public class WPAttributeDialog extends Window implements EventListener /** List of Editors */ private ArrayList m_editors = new ArrayList(); /** Length of Instance value (40) */ - private static final int INSTANCE_VALUE_LENGTH = 40; + //private static final int INSTANCE_VALUE_LENGTH = 40; private Checkbox cbNewEdit = new Checkbox(); private Button bNewRecord = new Button(Msg.getMsg(Env.getCtx(), "NewRecord")); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WRecordAccessDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WRecordAccessDialog.java index f5cf4cbebc..77293b5a6b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WRecordAccessDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WRecordAccessDialog.java @@ -18,7 +18,6 @@ import java.sql.ResultSet; import java.util.ArrayList; import java.util.logging.Level; -import org.adempiere.webui.apps.AEnv; import org.adempiere.webui.component.Checkbox; import org.adempiere.webui.component.ConfirmPanel; import org.adempiere.webui.component.Grid; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java index 96e1ce16dd..8a9239dc8c 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java @@ -170,7 +170,7 @@ public class ZkReportViewer extends Window implements EventListener, ITab private A reportLink; - private static final String REPORT = "org.idempiere.ui.report"; + //private static final String REPORT = "org.idempiere.ui.report"; /** * Static Layout diff --git a/org.adempiere.ui/src/org/compiere/apps/form/Allocation.java b/org.adempiere.ui/src/org/compiere/apps/form/Allocation.java index 40aad68ae3..8c71261749 100644 --- a/org.adempiere.ui/src/org/compiere/apps/form/Allocation.java +++ b/org.adempiere.ui/src/org/compiere/apps/form/Allocation.java @@ -644,14 +644,12 @@ public class Allocation alloc.setAD_Org_ID(AD_Org_ID); alloc.saveEx(); // For all invoices - int invoiceLines = 0; BigDecimal unmatchedApplied = Env.ZERO; for (int i = 0; i < iRows; i++) { // Invoice line is selected if (((Boolean)invoice.getValueAt(i, 0)).booleanValue()) { - invoiceLines++; KeyNamePair pp = (KeyNamePair)invoice.getValueAt(i, 2); // Value // Invoice variables int C_Invoice_ID = pp.getKey(); diff --git a/org.adempiere.ui/src/org/compiere/apps/form/Charge.java b/org.adempiere.ui/src/org/compiere/apps/form/Charge.java index 626e3029ef..96129af250 100644 --- a/org.adempiere.ui/src/org/compiere/apps/form/Charge.java +++ b/org.adempiere.ui/src/org/compiere/apps/form/Charge.java @@ -56,6 +56,7 @@ public class Charge private int m_C_TaxCategory_ID = 0; private int m_AD_Client_ID = 0; private int m_AD_Org_ID = 0; + @SuppressWarnings("unused") private int m_CreatedBy = 0; private MAcctSchema m_acctSchema = null; /** Logger */ diff --git a/org.adempiere.ui/src/org/compiere/apps/form/Match.java b/org.adempiere.ui/src/org/compiere/apps/form/Match.java index 4872ab035f..f753e05dda 100644 --- a/org.adempiere.ui/src/org/compiere/apps/form/Match.java +++ b/org.adempiere.ui/src/org/compiere/apps/form/Match.java @@ -31,7 +31,6 @@ import org.compiere.model.MMatchInv; import org.compiere.model.MMatchPO; import org.compiere.model.MOrderLine; import org.compiere.model.MRole; -import org.compiere.model.MStorageOnHand; import org.compiere.model.MStorageReservation; import org.compiere.process.DocumentEngine; import org.compiere.util.CLogger; @@ -58,7 +57,7 @@ public class Match private static final int MATCH_ORDER = 2; private static final int MODE_NOTMATCHED = 0; - private static final int MODE_MATCHED = 1; + //private static final int MODE_MATCHED = 1; /** Indexes in Table */ private static final int I_BPartner = 3; @@ -66,7 +65,7 @@ public class Match private static final int I_Product = 5; private static final int I_QTY = 6; private static final int I_MATCHED = 7; - private static final int I_Org = 8; //JAVIER + //private static final int I_Org = 8; //JAVIER diff --git a/org.adempiere.ui/src/org/compiere/apps/form/Merge.java b/org.adempiere.ui/src/org/compiere/apps/form/Merge.java index 47e1695f00..8c63e9908b 100644 --- a/org.adempiere.ui/src/org/compiere/apps/form/Merge.java +++ b/org.adempiere.ui/src/org/compiere/apps/form/Merge.java @@ -28,6 +28,7 @@ import org.compiere.util.Trx; public class Merge { + @SuppressWarnings("unused") private static final long serialVersionUID = 149783846292562740L; /** Window No */ public int m_WindowNo = 0; diff --git a/org.adempiere.ui/src/org/compiere/apps/form/PaySelect.java b/org.adempiere.ui/src/org/compiere/apps/form/PaySelect.java index decfd50016..dfcfd0980f 100644 --- a/org.adempiere.ui/src/org/compiere/apps/form/PaySelect.java +++ b/org.adempiere.ui/src/org/compiere/apps/form/PaySelect.java @@ -13,6 +13,8 @@ *****************************************************************************/ package org.compiere.apps.form; +import static org.compiere.model.SystemIDs.REFERENCE_PAYMENTRULE; + import java.math.BigDecimal; import java.sql.PreparedStatement; import java.sql.ResultSet; @@ -31,9 +33,7 @@ import org.compiere.model.MLookupInfo; import org.compiere.model.MPaySelection; import org.compiere.model.MPaySelectionLine; import org.compiere.model.MRole; -import static org.compiere.model.SystemIDs.*; import org.compiere.model.X_C_Order; -import org.compiere.process.ProcessInfo; import org.compiere.util.CLogger; import org.compiere.util.DB; import org.compiere.util.DisplayType; @@ -52,6 +52,7 @@ public class PaySelect /** * */ + @SuppressWarnings("unused") private static final long serialVersionUID = 2872767371244295934L; /** Window No */ diff --git a/org.adempiere.ui/src/org/compiere/apps/form/TreeBOM.java b/org.adempiere.ui/src/org/compiere/apps/form/TreeBOM.java index 2f2234011c..bc3b42dad1 100644 --- a/org.adempiere.ui/src/org/compiere/apps/form/TreeBOM.java +++ b/org.adempiere.ui/src/org/compiere/apps/form/TreeBOM.java @@ -16,18 +16,13 @@ package org.compiere.apps.form; -import java.util.List; import java.util.Properties; -import org.compiere.apps.form.TreeMaintenance; import org.compiere.model.MProduct; import org.compiere.model.MUOM; -import org.compiere.model.Query; import org.compiere.util.CLogger; import org.compiere.util.Env; import org.eevolution.model.MPPProductBOM; -import org.eevolution.model.MPPProductBOMLine; -import org.eevolution.model.X_PP_Product_BOM; public class TreeBOM { diff --git a/org.adempiere.ui/src/org/compiere/apps/wf/WFNodeWidget.java b/org.adempiere.ui/src/org/compiere/apps/wf/WFNodeWidget.java index f6647f9d1f..63e636aa7f 100644 --- a/org.adempiere.ui/src/org/compiere/apps/wf/WFNodeWidget.java +++ b/org.adempiere.ui/src/org/compiere/apps/wf/WFNodeWidget.java @@ -3,7 +3,6 @@ */ package org.compiere.apps.wf; -import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.Image; diff --git a/org.adempiere.ui/src/org/compiere/print/ReportCtl.java b/org.adempiere.ui/src/org/compiere/print/ReportCtl.java index ef552678db..a520a283f3 100644 --- a/org.adempiere.ui/src/org/compiere/print/ReportCtl.java +++ b/org.adempiere.ui/src/org/compiere/print/ReportCtl.java @@ -216,6 +216,7 @@ public class ReportCtl */ static public boolean startFinReport (ProcessInfo pi) { + @SuppressWarnings("unused") int AD_Client_ID = Env.getAD_Client_ID(Env.getCtx()); // Create Query from Parameters @@ -342,6 +343,7 @@ public class ReportCtl { // afalcone - [ 1871567 ] Wrong value in Payment document + @SuppressWarnings("unused") boolean ok = MPaySelectionCheck.deleteGeneratedDraft(Env.getCtx(), C_Payment_ID, null); // diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/ExpenseServlet.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/ExpenseServlet.java index 1396919bf0..8ca8595663 100644 --- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/ExpenseServlet.java +++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/ExpenseServlet.java @@ -131,6 +131,7 @@ public class ExpenseServlet extends HttpServlet response.sendRedirect("loginServlet?ForwardTo=expense.jsp"); // entry return; } + @SuppressWarnings("unused") int W_Expense_ID = WebUtil.getParameterAsInt(request, P_Expense_ID); String method = WebUtil.getParameter(request, P_SubmitType_Name); if(method.startsWith("Save")) diff --git a/org.apache.ecs/src/org/apache/ecs/StringElement.java b/org.apache.ecs/src/org/apache/ecs/StringElement.java index 47b9059565..0ba1dd5c9f 100644 --- a/org.apache.ecs/src/org/apache/ecs/StringElement.java +++ b/org.apache.ecs/src/org/apache/ecs/StringElement.java @@ -60,11 +60,11 @@ public class StringElement extends ConcreteElement implements Printable addElement(element); } - private StringElement append(String string) + /*private StringElement append(String string) { setTagText(getTagText()+string); return this; - } + }*/ /** Resets the internal string to be empty. diff --git a/org.compiere.db.oracle.provider/src/org/adempiere/db/oracle/config/ConfigOracle.java b/org.compiere.db.oracle.provider/src/org/adempiere/db/oracle/config/ConfigOracle.java index 91e3be2ff1..216b3b6bcc 100644 --- a/org.compiere.db.oracle.provider/src/org/adempiere/db/oracle/config/ConfigOracle.java +++ b/org.compiere.db.oracle.provider/src/org/adempiere/db/oracle/config/ConfigOracle.java @@ -31,7 +31,6 @@ import org.adempiere.install.IDBConfigMonitor; import org.adempiere.install.IDatabaseConfig; import org.compiere.db.Database; import org.compiere.install.ConfigurationData; -import org.compiere.tools.FileUtil; import org.compiere.util.CLogger; /** diff --git a/org.compiere.db.oracle.provider/src/org/compiere/db/DB_Oracle.java b/org.compiere.db.oracle.provider/src/org/compiere/db/DB_Oracle.java index 23054a3d76..e65680e6ef 100644 --- a/org.compiere.db.oracle.provider/src/org/compiere/db/DB_Oracle.java +++ b/org.compiere.db.oracle.provider/src/org/compiere/db/DB_Oracle.java @@ -41,7 +41,6 @@ import org.adempiere.exceptions.DBException; import org.compiere.Adempiere; import org.compiere.dbPort.Convert; import org.compiere.dbPort.Convert_Oracle; -import org.compiere.model.MSysConfig; import org.compiere.model.PO; import org.compiere.util.CLogger; import org.compiere.util.DB; diff --git a/org.compiere.db.postgresql.provider/src/org/compiere/dbPort/Convert_PostgreSQL.java b/org.compiere.db.postgresql.provider/src/org/compiere/dbPort/Convert_PostgreSQL.java index c99ae6eed7..8925622806 100644 --- a/org.compiere.db.postgresql.provider/src/org/compiere/dbPort/Convert_PostgreSQL.java +++ b/org.compiere.db.postgresql.provider/src/org/compiere/dbPort/Convert_PostgreSQL.java @@ -23,10 +23,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; import org.compiere.db.DB_PostgreSQL; -import org.compiere.model.MSysConfig; import org.compiere.util.CLogger; -import org.compiere.util.DB; -import org.compiere.util.Ini; import org.compiere.util.Util; /** @@ -50,6 +47,7 @@ public class Convert_PostgreSQL extends Convert_SQL92 { private TreeMap m_map; /** Logger */ + @SuppressWarnings("unused") private static CLogger log = CLogger.getCLogger(Convert_PostgreSQL.class); @@ -160,7 +158,6 @@ public class Convert_PostgreSQL extends Convert_SQL92 { */ protected String convertComplexStatement(String sqlStatement) { String retValue = sqlStatement; - StringBuilder sb = null; // Convert all decode parts int found = retValue.toUpperCase().indexOf("DECODE"); diff --git a/org.idempiere.fitnesse.fixture/src/org/idempiere/fitnesse/fixture/Login.java b/org.idempiere.fitnesse.fixture/src/org/idempiere/fitnesse/fixture/Login.java index dcaf6eb857..8090969169 100644 --- a/org.idempiere.fitnesse.fixture/src/org/idempiere/fitnesse/fixture/Login.java +++ b/org.idempiere.fitnesse.fixture/src/org/idempiere/fitnesse/fixture/Login.java @@ -213,6 +213,7 @@ public class Login extends TableFixture { return "Error logging in - no roles or user/pwd invalid for user " + m_user; } + @SuppressWarnings("unused") int windowNo = adempiereInstance.getAdempiereService().nextWindowNo(); return null; diff --git a/org.idempiere.fitnesse.fixture/src/org/idempiere/fitnesse/fixture/RunProcess.java b/org.idempiere.fitnesse.fixture/src/org/idempiere/fitnesse/fixture/RunProcess.java index b9d7f36942..a4e34fe805 100644 --- a/org.idempiere.fitnesse.fixture/src/org/idempiere/fitnesse/fixture/RunProcess.java +++ b/org.idempiere.fitnesse.fixture/src/org/idempiere/fitnesse/fixture/RunProcess.java @@ -76,6 +76,7 @@ public class RunProcess extends TableFixture { int windowNo = adempiereInstance.getAdempiereService().getWindowNo(); MProcess process = null; + @SuppressWarnings("unused") MProcessPara[] processParams = null; MPInstance pInstance = null; HashMap fmap = new HashMap(); diff --git a/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADDataStatusListener.java b/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADDataStatusListener.java index 7e66ec8dc8..f9520f7b0c 100644 --- a/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADDataStatusListener.java +++ b/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADDataStatusListener.java @@ -30,7 +30,7 @@ public class ADDataStatusListener implements DataStatusListener { this.m_status_data = e.getInfo(); - String dbInfo = e.getMessage(); + //String dbInfo = e.getMessage(); //if (curTab != null && curTab.isQueryActive()) // dbInfo = "[ " + dbInfo + " ]"; //m_status_db = dbInfo; diff --git a/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADLookup.java b/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADLookup.java index 62f5de8738..bc012596f8 100644 --- a/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADLookup.java +++ b/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADLookup.java @@ -42,11 +42,8 @@ public class ADLookup { static final int TYPE_BUISNESS_PARTNER = 002; private String m_columnName; - private int m_type; private String m_tableName; private String m_keyColumnName; - private Boolean IsQueryJoin; - private boolean m_isSOTRX; private final int MAX_PRODUCT_ROWS=500; @@ -72,8 +69,7 @@ public class ADLookup { private String getWhereClause( String keyColumn, DataRow params ) { - String whereClause = "IsSummary='N'"; - String lookupColumn = keyColumn; + String whereClause = "IsSummary='N'"; return whereClause; } @@ -132,8 +128,6 @@ public class ADLookup { String whereClause = getWhereClause(m_columnName, adr); String finalSQL=""; - IsQueryJoin = false; - String mode = "normal"; for (int i=0; i< adr.sizeOfFieldArray(); i++) { DataField f = adr.getFieldArray(i); @@ -200,16 +194,14 @@ public class ADLookup { //join�w if ((ile==1)) { - System.out.println("Znalaz�em 1 rekord wi�c szukam dla bez join. W kliencie zostanie automatycznie uzupe�niona warto�c"); - IsQueryJoin = false; + System.out.println("Znalaz�em 1 rekord wi�c szukam dla bez join. W kliencie zostanie automatycznie uzupe�niona warto�c"); } //Jesli wiecej niz jeden to uzywamy join�w //Spowoduje to wyswietlenie rekord�w spe�niajacych kryterium //w oknie LookUp'a if (ile>1) { - System.out.println("Znalaz�em wi�cej ni� 1 rekord wi�c szukam dla whereClause i z joinami. W kliencie zostanie wy�wietlone LookUpWindow z przefiltrowanymi rekordami."); - IsQueryJoin = true; + System.out.println("Znalaz�em wi�cej ni� 1 rekord wi�c szukam dla whereClause i z joinami. W kliencie zostanie wy�wietlone LookUpWindow z przefiltrowanymi rekordami."); } ds = getResult(info, ds, ile, mode); diff --git a/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADServiceImpl.java b/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADServiceImpl.java index 44851c9fb3..039b28e729 100644 --- a/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADServiceImpl.java +++ b/org.idempiere.webservices/WEB-INF/src/com/_3e/ADInterface/ADServiceImpl.java @@ -28,7 +28,6 @@ import org.compiere.model.MCountry; import org.compiere.model.MLocation; import org.compiere.model.MLookup; import org.compiere.model.MQuery; -import org.compiere.model.MRegion; import org.compiere.model.MTree; import org.compiere.model.MTreeNode; import org.compiere.util.CLogger; @@ -161,7 +160,8 @@ public class ADServiceImpl implements ADService { if (DisplayType.isLookup( fo.displayType )) { GridField ff = new GridField( fo ); - ArrayList deps = ff.getDependentOn(); + @SuppressWarnings("unused") + ArrayList deps = ff.getDependentOn(); Lookup lookup = ff.getLookup(); LookupInfo li = f.addNewLookupInfo(); @@ -296,7 +296,7 @@ public class ADServiceImpl implements ADService { public WindowDocument getADWindow(int WindowNo, int AD_Window_ID, int AD_Menu_ID) { authenticate(webServiceName, "getADWindow"); - WindowDocument wc = WindowCache.get(new String(""+AD_Window_ID+"_"+AD_Menu_ID)); + //WindowDocument wc = WindowCache.get(new String(""+AD_Window_ID+"_"+AD_Menu_ID)); //if (wc != null) return wc; WindowDocument res = WindowDocument.Factory.newInstance(); @@ -457,7 +457,7 @@ public class ADServiceImpl implements ADService { } else { DataRow findDR = req.getFindCriteria(); - MQuery currentQuery = ws.curTab.getQuery(); + //MQuery currentQuery = ws.curTab.getQuery(); MQuery newQuery = createQuery( ws.curTab.getTableName(), findDR ); if (findDR.getFieldArray().length>0) { //(!currentQuery.getWhereClause().equals( newQuery.getWhereClause() )) { // change the query for zak�adki ws.curTab.setQuery(newQuery); @@ -558,7 +558,9 @@ public class ADServiceImpl implements ADService { if (dr.length == 1) { DataRow dr0 = dr[0]; - boolean err = updateFields( ws, dr0 ); + @SuppressWarnings("unused") + //variable set to ease debugging (return value ignored) in case you want to check the return of the method + boolean err = updateFields( ws, dr0 ); if (ws.ads.m_is_error) { @@ -847,7 +849,7 @@ public class ADServiceImpl implements ADService { { boolean error = false; - Enumeration en = null; //request.getParameterNames(); + //Enumeration en = null; //request.getParameterNames(); DataField[] df = dr.getFieldArray(); DataField f; for (int i=0; i m_Param = null; private Properties m_ctx = null; private JasperPrint m_jasperPrint = null; diff --git a/org.idempiere.webservices/WEB-INF/src/org/compiere/model/MWebServiceType.java b/org.idempiere.webservices/WEB-INF/src/org/compiere/model/MWebServiceType.java index 7d9e9a1f91..a066fbfd97 100644 --- a/org.idempiere.webservices/WEB-INF/src/org/compiere/model/MWebServiceType.java +++ b/org.idempiere.webservices/WEB-INF/src/org/compiere/model/MWebServiceType.java @@ -238,6 +238,7 @@ public class MWebServiceType extends X_WS_WebServiceType } // isOutputColumnNameAllowed /** Static Logger */ + @SuppressWarnings("unused") private static CLogger s_log = CLogger.getCLogger (MWebServiceType.class); /************************************************************************** diff --git a/org.zkoss.zk.library/src/org/zkoss/util/resource/ClassLocator.java b/org.zkoss.zk.library/src/org/zkoss/util/resource/ClassLocator.java index 50a3e90935..52da037962 100644 --- a/org.zkoss.zk.library/src/org/zkoss/util/resource/ClassLocator.java +++ b/org.zkoss.zk.library/src/org/zkoss/util/resource/ClassLocator.java @@ -16,27 +16,26 @@ Copyright (C) 2005 Potix Corporation. All Rights Reserved. */ package org.zkoss.util.resource; -import java.util.ArrayList; +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; +import java.util.Collections; import java.util.Enumeration; +import java.util.Iterator; import java.util.LinkedHashMap; -import java.util.Map; import java.util.LinkedHashSet; -import java.util.Set; import java.util.LinkedList; import java.util.List; -import java.util.Collections; -import java.util.Iterator; -import java.io.InputStream; -import java.io.IOException; -import java.net.URL; +import java.util.Map; +import java.util.Set; +import org.zkoss.idom.Document; +import org.zkoss.idom.Element; +import org.zkoss.idom.input.SAXBuilder; +import org.zkoss.idom.util.IDOMs; import org.zkoss.util.CollectionsX; import org.zkoss.util.logging.Log; import org.zkoss.zk.library.Activator; -import org.zkoss.idom.Document; -import org.zkoss.idom.Element; -import org.zkoss.idom.util.IDOMs; -import org.zkoss.idom.input.SAXBuilder; /** * The locator searches the current thread's context class loader,