Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0030056 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2015-05-31 14:30 | 2015-11-14 13:02 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | shuehner | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR15Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | e46899b00411 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | alostale | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0030056: Cleanup all eclipse warnings in src-wad | |||||||
Description | This bug is to fix all (per openbravo preferences) eclipse warnings in src-wad folder. | |||||||
Steps To Reproduce | - | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||||||||||||||||
|
Notes | |
(0077937) hgbot (developer) 2015-06-01 13:09 |
Repository: erp/devel/pi Changeset: e46899b00411befee088aa43c220b51e8e7acdcb Author: Stefan Hühner <stefan.huehner <at> openbravo.com> Date: Sun May 31 15:43:59 2015 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/e46899b00411befee088aa43c220b51e8e7acdcb [^] Fixed 30056: Cleanup all warnings in src-wad XX - Remove String or int parameter assignment by copying into local variable. - in Wad#processSelCol use Vector.toArray function to avoid needing to replace reference in parameter. Note: .toArray will auto-resize itself to correct size as param is 0-length array - Fix 2 possible NPE. As code to treat null as empty value was only called after .debug triggering NPE as param of log4j.debug will be evaluated even without log level set to debug. - Wad#getVectorElementsNotRepeated function had parameter which was new empty Vector in all its 3 callers. As we do not expect more callers (was is deprecated) just remove the param completely and create new Vector inside the function removing param assignment. - in WadUtility instead of assigning to text-param and immediately returning that value just return it directly as the rest of that function already did. - in WadNumber. Confusion between non-static function param name + field inherited from superclass. As those seem to be very clearly utility functions which should use the param (and not some inherited field) -> just make them static to remove that confusion. - WadValidator gets 'friendlyWarnings' flag on construction but does not currently use it. However we may want to add it (and keep api stable now) so just supress that unused warning. --- M src-wad/src/org/openbravo/wad/Wad.java M src-wad/src/org/openbravo/wad/WadUtility.java M src-wad/src/org/openbravo/wad/controls/WADControl.java M src-wad/src/org/openbravo/wad/controls/WADImage.java M src-wad/src/org/openbravo/wad/controls/WADNumber.java M src-wad/src/org/openbravo/wad/controls/WADSearch.java M src-wad/src/org/openbravo/wad/validation/WADValidator.java --- |
(0078061) alostale (manager) 2015-06-04 12:55 |
code reviewed |
Issue History | |||
Date Modified | Username | Field | Change |
2015-05-31 14:30 | shuehner | New Issue | |
2015-05-31 14:30 | shuehner | Assigned To | => shuehner |
2015-05-31 14:30 | shuehner | Modules | => Core |
2015-05-31 14:30 | shuehner | Triggers an Emergency Pack | => No |
2015-05-31 14:30 | shuehner | Relationship added | related to 0030055 |
2015-06-01 13:09 | hgbot | Checkin | |
2015-06-01 13:09 | hgbot | Note Added: 0077937 | |
2015-06-01 13:09 | hgbot | Status | new => resolved |
2015-06-01 13:09 | hgbot | Resolution | open => fixed |
2015-06-01 13:09 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/e46899b00411befee088aa43c220b51e8e7acdcb [^] |
2015-06-01 13:11 | shuehner | Review Assigned To | => alostale |
2015-06-04 12:55 | alostale | Note Added: 0078061 | |
2015-06-04 12:55 | alostale | Status | resolved => closed |
2015-06-04 12:55 | alostale | Fixed in Version | => 3.0PR15Q3 |
2015-08-26 21:15 | shuehner | Relationship added | related to 0030681 |
2015-11-14 13:02 | shuehner | Relationship added | blocks 0031477 |
Copyright © 2000 - 2009 MantisBT Group |