Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0041283
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Localization Pack: Spain] AEAT 390minorhave not tried2019-07-04 13:592019-09-10 17:31
ReportershuehnerView Statuspublic 
Assigned Tocollazoandy4 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision530fdf287beb
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned ToSandrahuguet
Regression introduced in release
Summary

0041283: eclipse warning: Unlikely argument type for equals(): EpigraphIAEOrgInfo seems to be unrelated to String

DescriptionThe code is comparing a EpigraphIAEOrgInfo bob object to a String.

While that technically compares getIdentifier (see BaseOBObject.toString) to a String that looks accidental especially given the identifier column definition of the table:

obpi_pg=# select columnname from ad_column where ad_table_id = 'F468CC15B7B44F17AA68DA4D42E754CF' and isidentifier = 'Y';
    columnname
-------------------
 Epiae_Epigraph_ID
 AD_Org_ID
Steps To Reproduce     [java] 10. INFO in /srv/ci/workspace/mod-simple-ci23.18102/modules/org.openbravo.module.aeat390.es/src/org/openbravo/module/aeat390/es/report/AEAT390Report2011.java (at line 174)
     [java] if ("N".equals(activity) && i <= 5) {
     [java] ^^^^^^^^
     [java] Unlikely argument type for equals(): EpigraphIAEOrgInfo seems to be unrelated to String
     [java] ----------
     [java] ----------
     [java] 11. INFO in /srv/ci/workspace/mod-simple-ci23.18102/modules/org.openbravo.module.aeat390.es/src/org/openbravo/module/aeat390/es/v2012/report/AEAT390Report2012.java (at line 179)
     [java] if ("N".equals(activity) && i <= 5) {
     [java] ^^^^^^^^
     [java] Unlikely argument type for equals(): EpigraphIAEOrgInfo seems to be unrelated to String
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0114509)
hgbot (developer)
2019-09-10 17:31

Repository: erp/pmods/org.openbravo.module.aeat390.es
Changeset: 5dfa197c4d50bcbc1203ab9d106ca68f0c66e764
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Mon Aug 05 14:52:39 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat390.es/rev/5dfa197c4d50bcbc1203ab9d106ca68f0c66e764 [^]

Related to issue 41283: eclipse warning: Unlikely argument type for equals():
EpigraphIAEOrgInfo seems to be unrelated to String

Format source code to new eclipse build-int format

---
M src/org/openbravo/module/aeat390/es/api/cashvat/AEAT390CashVATReadyCalculationsHelper.java
M src/org/openbravo/module/aeat390/es/report/AEAT390Report2011.java
M src/org/openbravo/module/aeat390/es/report/helper/AEAT390CalculationsHelper.java
M src/org/openbravo/module/aeat390/es/v2012/report/AEAT390Report2012.java
---
(0114510)
hgbot (developer)
2019-09-10 17:31

Repository: erp/pmods/org.openbravo.module.aeat390.es
Changeset: 530fdf287bebc450a5864718ebfe2707a8769ab6
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Mon Aug 05 15:44:22 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat390.es/rev/530fdf287bebc450a5864718ebfe2707a8769ab6 [^]

Fixes issue 41283: eclipse warning: Unlikely argument type for equals():
EpigraphIAEOrgInfo seems to be unrelated to String

Removed eclipse warning in java 11

---
M src/org/openbravo/module/aeat390/es/api/cashvat/AEAT390CashVATReadyCalculationsHelper.java
M src/org/openbravo/module/aeat390/es/report/AEAT390Report2011.java
M src/org/openbravo/module/aeat390/es/report/helper/AEAT390CalculationsHelper.java
M src/org/openbravo/module/aeat390/es/v2012/report/AEAT390Report2012.java
---
(0114511)
Sandrahuguet (developer)
2019-09-10 17:31

code review + testing ok

- Issue History
Date Modified Username Field Change
2019-07-04 13:59 shuehner New Issue
2019-07-04 13:59 shuehner Assigned To => Opentix-Test
2019-08-02 14:37 Sandrahuguet Assigned To Opentix-Test => collazoandy4
2019-08-02 19:35 collazoandy4 Status new => scheduled
2019-09-10 17:31 hgbot Checkin
2019-09-10 17:31 hgbot Note Added: 0114509
2019-09-10 17:31 hgbot Checkin
2019-09-10 17:31 hgbot Note Added: 0114510
2019-09-10 17:31 hgbot Status scheduled => resolved
2019-09-10 17:31 hgbot Resolution open => fixed
2019-09-10 17:31 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat390.es/rev/530fdf287bebc450a5864718ebfe2707a8769ab6 [^]
2019-09-10 17:31 Sandrahuguet Review Assigned To => Sandrahuguet
2019-09-10 17:31 Sandrahuguet Note Added: 0114511
2019-09-10 17:31 Sandrahuguet Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker