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

Bug 570224

Summary: [dogfooding][cleanup][mass change] Primitive parsing
Product: [Eclipse Project] JDT Reporter: Carsten Hammer <carsten.hammer>
Component: DebugAssignee: Lars Vogel <Lars.Vogel>
Status: CLOSED DUPLICATE QA Contact: Fabrice Tiercelin <fabrice.tiercelin>
Severity: normal    
Priority: P3 CC: fabrice.tiercelin, Lars.Vogel
Version: 4.19   
Target Milestone: 4.20 M1   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/174529
https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/178326
Whiteboard:

Description Carsten Hammer CLA 2021-01-10 08:56:50 EST
dogfooding Primite parsing

This cleanup solves at the same time the following spotbugs error

Bug: Boxing/unboxing to parse a primitive org.eclipse.jdt.internal.launching.CompositeId.fromString(String)

A boxed primitive is created from a String, just to extract the unboxed primitive value.It is more efficient to just call the static parseXXX method.

Rank: Of Concern (16), confidence: High
Pattern: DM_BOXED_PRIMITIVE_FOR_PARSING 
Type: Bx, Category: PERFORMANCE (Performance)
Comment 1 Eclipse Genie CLA 2021-03-24 11:16:21 EDT
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/178326
Comment 2 Lars Vogel CLA 2021-03-26 07:18:16 EDT

*** This bug has been marked as a duplicate of bug 572300 ***