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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0040653
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Authorize.net Integrationminorhave not tried2019-04-23 10:262019-04-23 16:49
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision934911a94d2a
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

0040653: Unnecessary @SuppressWarnings("unchecked") after Hibernate upgrade

DescriptionAfter the Hibernate upgrade to version 5.4.2 (0040552) it is no longer needed to suppress several warnings in SubscriptionActionHandlerUtilData class.

For this reason, several eclipse warnings are being displayed (see attached log)
Steps To Reproduce1) Update pi to a revision equal or higher than https://code.openbravo.com/erp/devel/pi/rev/bdd63e1a834142c97bca4bee8ad1f5afbfadaafd [^]

2) Install authorize.net module.

3) Open Eclipse. Several warnings appear in SubscriptionActionHandlerUtilData.
TagsNo tags attached.
Attached Filestxt file icon eclipseWarns.txt [^] (1,939 bytes) 2019-04-23 10:26 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
caused by feature request 0040552 closedcaristu Openbravo ERP upgrade hibernate to version 5.4 

-  Notes
(0111230)
hgbot (developer)
2019-04-23 11:15

Repository: erp/pmods/org.openbravo.authorize.net
Changeset: 39908e85aa3fa0d5e5aa7adebfc5eef2ea832b4d
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Apr 23 10:56:50 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.authorize.net/rev/39908e85aa3fa0d5e5aa7adebfc5eef2ea832b4d [^]

related to issue 40653: apply new formatting + update copyright year

---
M src/org/openbravo/authorize/net/actionhandler/SubscriptionActionHandlerUtilData.java
---
(0111231)
hgbot (developer)
2019-04-23 11:15

Repository: erp/pmods/org.openbravo.authorize.net
Changeset: 934911a94d2a78f053aeb892ea3eedceeb063d6b
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Apr 23 11:03:40 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.authorize.net/rev/934911a94d2a78f053aeb892ea3eedceeb063d6b [^]

fixes issue 40653: Remove unnecessary @SuppressWarnings("unchecked")

  As part of the change introduced with the Hibernate upgrade to version 5.4.2[1], OBCriteria and OBQuery support method chaining[2].

  In this particular case, after invoking "setMaxResults()" in an OBCriteria, now the OBCriteria itself is being returned. Thus, the @SuppressWarnings("unchecked") is no longer needed because the "list()" method of OBCriteria does not require it.

  [1] https://issues.openbravo.com/view.php?id=40552 [^]
  [2] https://issues.openbravo.com/view.php?id=40614 [^]

---
M src/org/openbravo/authorize/net/actionhandler/SubscriptionActionHandlerUtilData.java
---
(0111242)
Sandrahuguet (developer)
2019-04-23 16:49

Verified

- Issue History
Date Modified Username Field Change
2019-04-23 10:26 caristu New Issue
2019-04-23 10:26 caristu Assigned To => Triage Finance
2019-04-23 10:26 caristu File Added: eclipseWarns.txt
2019-04-23 10:26 caristu Assigned To Triage Finance => caristu
2019-04-23 10:26 caristu Relationship added caused by 0040552
2019-04-23 10:30 caristu Review Assigned To => Sandrahuguet
2019-04-23 11:15 hgbot Checkin
2019-04-23 11:15 hgbot Note Added: 0111230
2019-04-23 11:15 hgbot Checkin
2019-04-23 11:15 hgbot Note Added: 0111231
2019-04-23 11:15 hgbot Status new => resolved
2019-04-23 11:15 hgbot Resolution open => fixed
2019-04-23 11:15 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.authorize.net/rev/934911a94d2a78f053aeb892ea3eedceeb063d6b [^]
2019-04-23 16:49 Sandrahuguet Note Added: 0111242
2019-04-23 16:49 Sandrahuguet Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker