Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0040598 | Openbravo ERP | A. Platform | public | 2019-04-11 15:08 | 2019-05-21 15:16 |
|
Reporter | shuehner | |
Assigned To | shuehner | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR19Q3 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0040598: Stop using Vector<Object> when only single type AttachContent is used |
Description | PrintController has some bad coding style using Vector<Object> even when only single type AttachContent is ever put into.
Apart of making the code harder to understand it also requires adding extra casts on ever read.
Note:
That code has more style problems which are not addressed here to keep change simple.
Removal of Vector<Object> is done to work around bug in external code-analysis tool:
https://github.com/typetools/checker-framework/issues/2422 [^] |
Steps To Reproduce | - |
Proposed Solution | Change all Vector<Object> -> Vector<AttachContent> |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | 40598.diff (4,360) 2019-04-11 15:09 https://issues.openbravo.com/file_download.php?file_id=12855&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2019-04-11 15:08 | shuehner | New Issue | |
2019-04-11 15:08 | shuehner | Assigned To | => platform |
2019-04-11 15:08 | shuehner | OBNetwork customer | => No |
2019-04-11 15:08 | shuehner | Modules | => Core |
2019-04-11 15:08 | shuehner | Triggers an Emergency Pack | => No |
2019-04-11 15:09 | shuehner | File Added: 40598.diff | |
2019-04-11 15:10 | shuehner | Note Added: 0111084 | |
2019-04-12 08:45 | hgbot | Checkin | |
2019-04-12 08:45 | hgbot | Note Added: 0111098 | |
2019-04-12 08:45 | hgbot | Status | new => resolved |
2019-04-12 08:45 | hgbot | Resolution | open => fixed |
2019-04-12 08:45 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/435585a9485d060e7a95f6c4219d44a60077625c [^] |
2019-04-12 08:45 | hgbot | Checkin | |
2019-04-12 08:45 | hgbot | Note Added: 0111099 | |
2019-04-12 08:47 | alostale | Assigned To | platform => shuehner |
2019-04-12 08:47 | alostale | Review Assigned To | => alostale |
2019-04-12 08:47 | alostale | Note Added: 0111100 | |
2019-04-12 08:47 | alostale | Status | resolved => closed |
2019-04-12 08:47 | alostale | Fixed in Version | => 3.0PR19Q3 |
2019-05-21 15:16 | hudsonbot | Checkin | |
2019-05-21 15:16 | hudsonbot | Note Added: 0111972 | |
Notes |
|
|
Patch is only compile-tested so far. |
|
|
(0111098)
|
hgbot
|
2019-04-12 08:45
|
|
|
|
(0111099)
|
hgbot
|
2019-04-12 08:45
|
|
Repository: erp/devel/pi
Changeset: 44c6e6baec01a4c6cb262e8285a1345f90cb3354
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Apr 12 08:45:20 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/44c6e6baec01a4c6cb262e8285a1345f90cb3354 [^]
related to issue 40598: do not use Vector at all, use ArrayList instead
---
M src/org/openbravo/erpCommon/utility/reporting/printing/PrintController.java
---
|
|
|
|
|
|
|
|