Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030053Openbravo ERPA. Platformpublic2015-05-30 20:062015-11-14 13:02
shuehner 
shuehner 
normalminorhave not tried
closedfixed 
5
 
3.0PR15Q3 
alostale
Core
No
0030053: Cleanup local unused variables warning
Eclipse has useful warning showing local (private) variables which are never used.

As those are not useful they should be cleaned up.

Note:
2 common special cases:
a.) serialVersionUID constant normally used together with Seriablizable classes
b.) Defined but unused log4j (or other) logger
Check eclipse warning related to 'Unused local variables'
Recheck and delete those unused local variables definitions.
No tags attached.
related to defect 0030055 closed shuehner Cleanup all eclipse warnings in src-trl 
blocks feature request 0031477 new shuehner Tracking issue to reduce the huge number of eclipse warnings in pi 
Issue History
2015-05-30 20:06shuehnerNew Issue
2015-05-30 20:06shuehnerAssigned To => platform
2015-05-30 20:06shuehnerModules => Core
2015-05-30 20:06shuehnerTriggers an Emergency Pack => No
2015-05-30 21:35shuehnerAssigned Toplatform => shuehner
2015-06-01 13:09hgbotCheckin
2015-06-01 13:09hgbotNote Added: 0077932
2015-06-01 13:09hgbotCheckin
2015-06-01 13:09hgbotNote Added: 0077933
2015-06-01 13:09hgbotCheckin
2015-06-01 13:09hgbotNote Added: 0077934
2015-06-01 13:10shuehnerReview Assigned To => alostale
2015-06-01 13:15shuehnerStatusnew => scheduled
2015-06-01 13:15shuehnerNote Added: 0077941
2015-06-01 13:15shuehnerStatusscheduled => resolved
2015-06-01 13:15shuehnerFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cb3442689716bd0651bfa4e375ffbc4e0a0e625c [^]
2015-06-01 13:15shuehnerResolutionopen => fixed
2015-06-02 03:42hudsonbotCheckin
2015-06-02 03:42hudsonbotNote Added: 0077963
2015-06-02 03:42hudsonbotCheckin
2015-06-02 03:42hudsonbotNote Added: 0077964
2015-06-02 03:42hudsonbotCheckin
2015-06-02 03:42hudsonbotNote Added: 0077965
2015-06-04 12:24alostaleRelationship addedrelated to 0030055
2015-06-04 12:25alostaleNote Added: 0078056
2015-06-04 12:25alostaleStatusresolved => closed
2015-06-04 12:25alostaleFixed in Version => 3.0PR15Q3
2015-11-14 13:02shuehnerRelationship addedblocks 0031477

Notes
(0077932)
hgbot   
2015-06-01 13:09   
Repository: erp/devel/pi
Changeset: adda5d230a5e9857cff59ca2a92b3f2d7224bd70
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Sat May 30 20:07:50 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/adda5d230a5e9857cff59ca2a92b3f2d7224bd70 [^]

Issue 30053. Part 1: Cleanup unnecessary serialVersionUID variables.

Those definitions are not useful in this cases and the classes they are in
are not serializable.

So instead of special feature related to Serialization in this cases just a
local unused variable.

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/BaseDataSourceService.java
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServiceProvider.java
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DefaultDataSourceService.java
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ModelDataSourceService.java
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
M modules/org.openbravo.service.json/src/org/openbravo/service/json/QueryBuilder.java
M src/org/openbravo/base/provider/OBProviderConfigReader.java
M src/org/openbravo/erpCommon/ad_forms/DocAmortizationTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocBankTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocCashTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocDPManagementTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocDoubtfulDebt.java
M src/org/openbravo/erpCommon/ad_forms/DocDoubtfulDebtTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocFINBankStatement.java
M src/org/openbravo/erpCommon/ad_forms/DocFINBankStatementTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java
M src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransactionTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocFINPayment.java
M src/org/openbravo/erpCommon/ad_forms/DocFINPaymentTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java
M src/org/openbravo/erpCommon/ad_forms/DocFINReconciliationTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocGLJournalTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocInOutTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocInventoryTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocInvoiceTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocLCCostTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocLandedCostTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocMatchInvTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocMovementTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocOrderTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocPaymentTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocProductionTemplate.java
M src/org/openbravo/erpCommon/ad_forms/TranslationManager.java
M src/org/openbravo/erpCommon/businessUtility/InitialClientSetup.java
M src/org/openbravo/service/rest/DalWebService.java
---
(0077933)
hgbot   
2015-06-01 13:09   
Repository: erp/devel/pi
Changeset: 4408556e4cb4795c32230a10783ec66d96a23fcc
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Sat May 30 20:29:02 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4408556e4cb4795c32230a10783ec66d96a23fcc [^]

Issue 30053. Part 2: Cleanup unnecessary slf4j / log4j loggers

Remove those where they are private and never used in the file.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/MatchStatementOnLoadPreferenceActionHandler.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_FinaccTransactionEventListener.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/PaymentSelectorFilterExpression.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/event/TableTreeEventHandler.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/GetNameGeneralLedger.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/GetLabelActionHandler.java
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/SetContextInfoActionHandler.java
M modules/org.openbravo.client.myob/src/org/openbravo/client/myob/CalendarWidgetProvider.java
M src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransactionTemplate.java
M src/org/openbravo/erpCommon/ad_forms/DocLine_FINPayment.java
M src/org/openbravo/erpCommon/utility/LeftTabsBar.java
M src/org/openbravo/erpCommon/utility/NavigationBar.java
M src/org/openbravo/erpCommon/utility/ToolBar.java
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintInvoices.java
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintOrders.java
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintQuotations.java
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintShipments.java
M src/org/openbravo/service/system/ApplicationDictionaryValidator.java
---
(0077934)
hgbot   
2015-06-01 13:09   
Repository: erp/devel/pi
Changeset: cb3442689716bd0651bfa4e375ffbc4e0a0e625c
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Sat May 30 20:59:23 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/cb3442689716bd0651bfa4e375ffbc4e0a0e625c [^]

Issue 30053. Part 3: Delete local unused variables (easy cases)

This removes unused local variables / fields for all the easy cases.
Where there is no user besides the variables declaration/init and
where it is clear that just deleting it is the right thing to do (so
no doubt it should be used instead of deleting it)

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/PaymentProposalPickEditLines.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/PaymentSelectorFilterExpression.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_ReconciliationProcess.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_Utility.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFieldHandler.java
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DefaultDataSourceService.java
M src-core/src/org/openbravo/xmlEngine/XmlVectorValue.java
M src-test/src/org/openbravo/test/dal/DalPerformanceExampleTest.java
M src-wad/src/org/openbravo/wad/Wad.java
M src/org/openbravo/base/model/ModelProvider.java
M src/org/openbravo/common/actionhandler/RMInOutPickEditLines.java
M src/org/openbravo/common/actionhandler/RMShipmentPickEditLines.java
M src/org/openbravo/common/datasource/StockReservationPickAndEditDataSource.java
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java
M src/org/openbravo/erpCommon/ad_actionButton/EditCCPMeasureValues.java
M src/org/openbravo/erpCommon/ad_callouts/SL_Asset_Product.java
M src/org/openbravo/erpCommon/ad_callouts/SL_PC_Case_Product.java
M src/org/openbravo/erpCommon/ad_process/DeleteClient.java
M src/org/openbravo/erpCommon/ad_process/ResetAccountingProcess.java
M src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.java
M src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJR.java
M src/org/openbravo/erpCommon/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJR_legacy.java
M src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.java
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
M src/org/openbravo/event/InvoiceLineEventHandler.java
M src/org/openbravo/event/MInOutLineEventHandler.java
---
(0077941)
shuehner   
2015-06-01 13:15   
Mark as manually resolved as rest of still open warnings will be fixed in separate issue.
(0077963)
hudsonbot   
2015-06-02 03:42   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/14de467bd788 [^]
Maturity status: Test
(0077964)
hudsonbot   
2015-06-02 03:42   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/14de467bd788 [^]
Maturity status: Test
(0077965)
hudsonbot   
2015-06-02 03:42   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/14de467bd788 [^]
Maturity status: Test
(0078056)
alostale   
2015-06-04 12:25   
code reviewed