Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0030681 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2015-08-26 21:15 | 2015-11-23 21:17 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | shuehner | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR16Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 9c07a6a2385a | ||||
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 | 0030681: Cleanup all warnings in src-core | |||||||
Description | This bug is to fix all (per openbravo preferences) eclipse warnings in src-core folder. | |||||||
Steps To Reproduce | Check eclipse warnings with openbravo defaults eclipse preferences | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0081903) hgbot (developer) 2015-11-16 19:18 |
Repository: erp/devel/pi Changeset: e16c5403ed779bbd1d5211f3d2dd6d667f466bd9 Author: Stefan Hühner <stefan.huehner <at> openbravo.com> Date: Fri Nov 13 16:02:57 2015 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/e16c5403ed779bbd1d5211f3d2dd6d667f466bd9 [^] Issue 30681: Fix all 'Name Shadowing an Conflicts' warnings in src-core Mostly 2 classes: - parameter name same as field name Solve by renaming parameter to be unique in all function as it takes precendence over field name unless using this. - Local variable having same name as field name Solve by renaming local variable as it takes precedence over field name unless using this. Exceptions: - Slqc.java remove parameter out completely as it was never used in the function - XmlTemplate: remove field uri as it was never used (so now only local var in some methods without shading the field) - XmlVectorValue - Remove unused field xmlDocument and references writing to it as it was never read - remove function printStringBuffer(HaspMap...) completely as it was never used --- M src-core/src/org/openbravo/base/ConfigParameters.java M src-core/src/org/openbravo/base/MultipartRequest.java M src-core/src/org/openbravo/data/Sqlc.java M src-core/src/org/openbravo/database/ConnectionProviderImpl.java M src-core/src/org/openbravo/uiTranslation/FieldLabelsData.java M src-core/src/org/openbravo/xmlEngine/XmlTemplate.java M src-core/src/org/openbravo/xmlEngine/XmlVectorValue.java --- |
(0081904) hgbot (developer) 2015-11-16 19:18 |
Repository: erp/devel/pi Changeset: 84939351cba8705e060074302d6437595fc9a41d Author: Stefan Hühner <stefan.huehner <at> openbravo.com> Date: Fri Nov 13 16:12:27 2015 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/84939351cba8705e060074302d6437595fc9a41d [^] Issue 30681: Fix all 'Parameter should not be assigned warnings' in src-core Same fix always in case parameter p is written to: Rename parameter to _p Create temporary variable p in first line of the method, assigning it from the _p renamed parameter. Additionally in file BuildValidationHandler: Chaneg access to members basedir and module to be static and not via this. as those are static fields. --- M src-core/src/org/openbravo/base/AntExecutor.java M src-core/src/org/openbravo/base/HttpBaseUtils.java M src-core/src/org/openbravo/base/VariablesBase.java M src-core/src/org/openbravo/buildvalidation/BuildValidationHandler.java M src-core/src/org/openbravo/data/Sqlc.java M src-core/src/org/openbravo/data/UtilSql.java M src-core/src/org/openbravo/database/RDBMSIndependent.java M src-core/src/org/openbravo/utils/FormatUtilities.java M src-core/src/org/openbravo/utils/Replace.java --- |
(0081905) hgbot (developer) 2015-11-16 19:18 |
Repository: erp/devel/pi Changeset: 9c07a6a2385a5e4f7f1e313c3084870e74c591e7 Author: Stefan Hühner <stefan.huehner <at> openbravo.com> Date: Fri Nov 13 17:08:52 2015 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/9c07a6a2385a5e4f7f1e313c3084870e74c591e7 [^] Fixed 30681. Cleanup rest of warnings in src-core Cleanup all (but 2) warnings in src-core: - HttpBaseServlet: Fix NPE. Apparently wrong operator used as testing for "" for a nullpointer does not make sense. But testing for not null and not empty does. - JNDIConnectionProvider.PoolInfo Add default serialVersionUID constant - TranslationHandler remove never read field. Add comment to (public) setter about its value not being used. - TranslationUtils Remove local variable never being read --- M src-core/src/org/openbravo/base/HttpBaseServlet.java M src-core/src/org/openbravo/database/JNDIConnectionProvider.java M src-core/src/org/openbravo/uiTranslation/TranslationHandler.java M src-core/src/org/openbravo/uiTranslation/TranslationUtils.java --- |
(0082051) alostale (manager) 2015-11-23 08:20 |
code reviewed |
(0082243) hudsonbot (developer) 2015-11-23 21:17 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7b56bebaaa88 [^] Maturity status: Test |
(0082244) hudsonbot (developer) 2015-11-23 21:17 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7b56bebaaa88 [^] Maturity status: Test |
Issue History | |||
Date Modified | Username | Field | Change |
2015-08-26 21:15 | shuehner | New Issue | |
2015-08-26 21:15 | shuehner | Assigned To | => platform |
2015-08-26 21:15 | shuehner | Modules | => Core |
2015-08-26 21:15 | shuehner | Triggers an Emergency Pack | => No |
2015-08-26 21:15 | shuehner | Relationship added | related to 0030056 |
2015-08-26 21:33 | shuehner | Assigned To | platform => shuehner |
2015-11-14 13:02 | shuehner | Relationship added | blocks 0031477 |
2015-11-16 14:00 | shuehner | Review Assigned To | => alostale |
2015-11-16 19:18 | hgbot | Checkin | |
2015-11-16 19:18 | hgbot | Note Added: 0081903 | |
2015-11-16 19:18 | hgbot | Checkin | |
2015-11-16 19:18 | hgbot | Note Added: 0081904 | |
2015-11-16 19:18 | hgbot | Checkin | |
2015-11-16 19:18 | hgbot | Note Added: 0081905 | |
2015-11-16 19:18 | hgbot | Status | new => resolved |
2015-11-16 19:18 | hgbot | Resolution | open => fixed |
2015-11-16 19:18 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/9c07a6a2385a5e4f7f1e313c3084870e74c591e7 [^] |
2015-11-23 08:20 | alostale | Note Added: 0082051 | |
2015-11-23 08:20 | alostale | Status | resolved => closed |
2015-11-23 08:20 | alostale | Fixed in Version | => 3.0PR16Q1 |
2015-11-23 21:17 | hudsonbot | Checkin | |
2015-11-23 21:17 | hudsonbot | Note Added: 0082243 | |
2015-11-23 21:17 | hudsonbot | Checkin | |
2015-11-23 21:17 | hudsonbot | Note Added: 0082244 |
Copyright © 2000 - 2009 MantisBT Group |