Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0002943 | Openbravo ERP | Z. Others | public | 2008-04-28 22:37 | 2008-06-12 09:43 |
Reporter | user71 | ||||
Assigned To | user71 | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | 2.40alpha-r2 | |||
Merge Request Status | |||||
Review Assigned To | |||||
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 | 0002943: Code-Cleanup: explicit enumeration -> enhanced for-loops | ||||
Description | A lot of code uses explicit Enumerations to iterate of i.e. the elements of a Vector. This could be converted to enhanced for-loops as they are shorter and easier to read. Example for iterating over String stored in a vector: Instead of: for (Enumeration<String> e = report.xmlDocument. xmlTemplate.configuration.hashtable.vecKeys. elements();e.hasMoreElements() ;) { String id = e.nextElement(); Use: for (String id : report.xmlDocument. xmlTemplate.configuration.hashtable.vecKeys) { The enhanced-for loops are functionwise identical but a lot shorter. | ||||
Steps To Reproduce | |||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|