Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035446Openbravo ERPZ. Otherspublic2017-03-07 13:312017-03-07 17:21
vmromanos 
vmromanos 
normaltrivialalways
closedfixed 
5
 
 
vmromanos
Core
No
0035446: Clean up eclipse warnings in Finance modules
Clean up the eclipse warnings found in finance modules.
Right now this is the list of warnings:

eclipse-warnings:
     [echo] Compiling...
     [java] ----------
     [java] 1. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.module.finactvalidator.es/src/org/openbravo/module/finactvalidator/es/erpCommon/ad_callout/FNACTV_BPBankAccountValidation.java (at line 167)
     [java] i = i / 10;
     [java] ^
     [java] The parameter i should not be assigned
     [java] ----------
     [java] ----------
     [java] 2. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.module.finactvalidator.es/src/org/openbravo/module/finactvalidator/es/erpCommon/ad_callout/FNACTV_BankAccountValidation.java (at line 171)
     [java] i = i / 10;
     [java] ^
     [java] The parameter i should not be assigned
     [java] ----------
     [java] ----------
     [java] 3. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.module.idljava/src/org/openbravo/module/idljava/proc/IdlServiceJava.java (at line 32)
     [java] CSVReader reader = new CSVReader(new InputStreamReader(new FileInputStream(filename), "UTF-8"),
     [java] ^^^^^^
     [java] Resource leak: 'reader' is never closed
     [java] ----------
     [java] ----------
     [java] 4. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/GeneralAccountingReports.java (at line 151)
     [java] strElementValue = strElementValue.substring(1, strElementValue.length());
     [java] ^^^^^^^^^^^^^^^
     [java] The parameter strElementValue should not be assigned
     [java] ----------
     [java] 5. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/GeneralAccountingReports.java (at line 203)
     [java] strDateTo = strAsDateTo;
     [java] ^^^^^^^^^
     [java] The parameter strDateTo should not be assigned
     [java] ----------
     [java] 6. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/GeneralAccountingReports.java (at line 204)
     [java] strDateToRef = strAsDateToRef;
     [java] ^^^^^^^^^^^^
     [java] The parameter strDateToRef should not be assigned
     [java] ----------
     [java] 7. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/GeneralAccountingReports.java (at line 205)
     [java] strDateFrom = "";
     [java] ^^^^^^^^^^^
     [java] The parameter strDateFrom should not be assigned
     [java] ----------
     [java] 8. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/GeneralAccountingReports.java (at line 206)
     [java] strDateFromRef = "";
     [java] ^^^^^^^^^^^^^^
     [java] The parameter strDateFromRef should not be assigned
     [java] ----------
     [java] 9. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/GeneralAccountingReports.java (at line 295)
     [java] strDateFrom = OBDateUtils.formatDate(startingEndingDate.get("startingDate"));
     [java] ^^^^^^^^^^^
     [java] The parameter strDateFrom should not be assigned
     [java] ----------
     [java] 10. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/GeneralAccountingReports.java (at line 297)
     [java] strDateTo = OBDateUtils.formatDate(startingEndingDate.get("endingDate"));
     [java] ^^^^^^^^^
     [java] The parameter strDateTo should not be assigned
     [java] ----------
     [java] 11. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/GeneralAccountingReports.java (at line 301)
     [java] strDateFromRef = OBDateUtils.formatDate(startingEndingDateRef.get("startingDate"));
     [java] ^^^^^^^^^^^^^^
     [java] The parameter strDateFromRef should not be assigned
     [java] ----------
     [java] 12. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/GeneralAccountingReports.java (at line 303)
     [java] strDateToRef = OBDateUtils.formatDate(startingEndingDateRef.get("endingDate"));
     [java] ^^^^^^^^^^^^
     [java] The parameter strDateToRef should not be assigned
     [java] ----------
     [java] ----------
     [java] 13. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/AccountTree.java (at line 247)
     [java] rootElement = "0";
     [java] ^^^^^^^^^^^
     [java] The parameter rootElement should not be assigned
     [java] ----------
     [java] 14. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/AccountTree.java (at line 316)
     [java] vecTotal = new Vector<Object>();
     [java] ^^^^^^^^
     [java] The parameter vecTotal should not be assigned
     [java] ----------
     [java] 15. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/AccountTree.java (at line 458)
     [java] reportNode = new String[1];
     [java] ^^^^^^^^^^
     [java] The parameter reportNode should not be assigned
     [java] ----------
     [java] 16. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/AccountTree.java (at line 466)
     [java] totalAmounts = new Vector<Object>();
     [java] ^^^^^^^^^^^^
     [java] The parameter totalAmounts should not be assigned
     [java] ----------
     [java] 17. WARNING in /srv/ci/workspace/mod-simple-ci23.140/modules/org.openbravo.report.improved.balancesheet/src/org/openbravo/report/improved/balancesheet/ad_reports/AccountTree.java (at line 596)
     [java] indice = new String[1];
     [java] ^^^^^^
     [java] The parameter indice should not be assigned
     [java] ----------
     [java] 17 problems (17 warnings)
Run mod-functional-basic, mod-simple.
Go to artifacts section and verify eclipse_warning.log is not empty
No tags attached.
related to feature request 0031477 new shuehner Tracking issue to reduce the huge number of eclipse warnings in pi 
Issue History
2017-03-07 13:31vmromanosNew Issue
2017-03-07 13:31vmromanosAssigned To => Triage Finance
2017-03-07 13:31vmromanosModules => Core
2017-03-07 13:31vmromanosTriggers an Emergency Pack => No
2017-03-07 13:31vmromanosRelationship addedrelated to 0031477
2017-03-07 13:32vmromanosStatusnew => scheduled
2017-03-07 13:32vmromanosAssigned ToTriage Finance => vmromanos
2017-03-07 13:46hgbotCheckin
2017-03-07 13:46hgbotNote Added: 0094789
2017-03-07 13:52hgbotCheckin
2017-03-07 13:52hgbotNote Added: 0094790
2017-03-07 13:54hgbotCheckin
2017-03-07 13:54hgbotNote Added: 0094791
2017-03-07 13:57hgbotCheckin
2017-03-07 13:57hgbotNote Added: 0094792
2017-03-07 13:57hgbotStatusscheduled => resolved
2017-03-07 13:57hgbotResolutionopen => fixed
2017-03-07 13:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.idljava/rev/7532ffc7df7e82fb3075413788bfb64d683b8fdd [^]
2017-03-07 15:28hgbotCheckin
2017-03-07 15:28hgbotNote Added: 0094796
2017-03-07 15:31hgbotCheckin
2017-03-07 15:31hgbotNote Added: 0094798
2017-03-07 17:21vmromanosReview Assigned To => vmromanos
2017-03-07 17:21vmromanosNote Added: 0094806
2017-03-07 17:21vmromanosStatusresolved => closed

Notes
(0094789)
hgbot   
2017-03-07 13:46   
Repository: erp/mods/org.openbravo.report.improved.balancesheet
Changeset: 25e2a704d4d5d5295e45e32f09d7b704d2e02215
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Tue Mar 07 13:35:33 2017 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.report.improved.balancesheet/rev/25e2a704d4d5d5295e45e32f09d7b704d2e02215 [^]

Related to issue 35446: Clean up eclipse warnings

---
M src/org/openbravo/report/improved/balancesheet/ad_reports/GeneralAccountingReports.java
---
(0094790)
hgbot   
2017-03-07 13:52   
Repository: erp/mods/org.openbravo.module.finactvalidator.es
Changeset: f1b7435627dc3583ca9a040cd11fb3701c444de8
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Tue Mar 07 13:53:54 2017 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.module.finactvalidator.es/rev/f1b7435627dc3583ca9a040cd11fb3701c444de8 [^]

Related to issue 35446: Clean up eclipse warnings

---
M src/org/openbravo/module/finactvalidator/es/erpCommon/ad_callout/FNACTV_BPBankAccountValidation.java
---
(0094791)
hgbot   
2017-03-07 13:54   
Repository: erp/mods/org.openbravo.module.finactvalidator.es
Changeset: 3220ac21fcdf06b9625d0a99b5c287d1a9e89c9c
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Tue Mar 07 13:56:15 2017 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.module.finactvalidator.es/rev/3220ac21fcdf06b9625d0a99b5c287d1a9e89c9c [^]

Related to issue 35446: Clean up eclipse warnings

---
M src/org/openbravo/module/finactvalidator/es/erpCommon/ad_callout/FNACTV_BankAccountValidation.java
---
(0094792)
hgbot   
2017-03-07 13:57   
Repository: erp/pmods/org.openbravo.module.idljava
Changeset: 7532ffc7df7e82fb3075413788bfb64d683b8fdd
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Tue Mar 07 13:58:19 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.idljava/rev/7532ffc7df7e82fb3075413788bfb64d683b8fdd [^]

Fixed issue 35446: Clean up eclipse warnings

---
M src/org/openbravo/module/idljava/proc/IdlServiceJava.java
---
(0094796)
hgbot   
2017-03-07 15:28   
Repository: erp/mods/org.openbravo.report.improved.balancesheet
Changeset: 14d34e0e8ee74e6dde70e0f223c235b0b49d9dfd
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Tue Mar 07 15:29:53 2017 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.report.improved.balancesheet/rev/14d34e0e8ee74e6dde70e0f223c235b0b49d9dfd [^]

Related to issue 35446: Clean up eclipse warnings

---
M src/org/openbravo/report/improved/balancesheet/ad_reports/AccountTree.java
---
(0094798)
hgbot   
2017-03-07 15:31   
Repository: erp/pmods/org.openbravo.module.idljava
Changeset: d9533c1eeda6e85dadfeec1474b6afc2d068f5aa
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Tue Mar 07 15:33:37 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.idljava/rev/d9533c1eeda6e85dadfeec1474b6afc2d068f5aa [^]

Related to issue 35446: Clean up eclipse warnings

---
M src/org/openbravo/module/idljava/proc/IdlServiceJava.java
---
(0094806)
vmromanos   
2017-03-07 17:21   
Jenkins job passed succesfully:

http://ci.openbravo.com/view/modules/job/mod-simple/11061/artifact/eclipse_warning.log [^]