Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324570

Summary: [build] use toString() methods to create strings from primitives instead of appending empty strings
Product: z_Archived Reporter: Torkild Resheim <torkildr>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch to fix the issue
none
mylyn/context/zip none

Description Torkild Resheim CLA 2010-09-06 07:57:52 EDT
I see code where <int value> + "" is used to produce a string instead of Integer.toString(<int value>).  The latter is more readable and also faster.
Comment 1 Torkild Resheim CLA 2010-09-06 08:05:42 EDT
Created attachment 178259 [details]
Patch to fix the issue

Replaces <int value>+"" with Integer.toString(<int value>).
Comment 2 Torkild Resheim CLA 2010-09-06 08:05:44 EDT
Created attachment 178260 [details]
mylyn/context/zip
Comment 3 Steffen Pingel CLA 2010-09-07 19:14:32 EDT
I understand that you prefer a different style but unless there is a measurable performance impact I won't apply this change. The overhead for tracking the IP log entry outweighs the benefit.
Comment 4 Torkild Resheim CLA 2010-09-08 01:54:17 EDT
The performance impact of using toString() instead of <string>+"" is measurable. The prior takes about half the time. But I doubt that it is noticeable in this case. I'm OK with resolving the bug as WONTFIX.