ObjectMapper-Instanzen teilen — 9+ Duplikate #65
Labels
No labels
bug
build
enhancement
headless
P1-critical
P2-high
P3-medium
P4-low
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-tools/jdt-mcp-server#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Jede Tool-Klasse erstellt ihren eigenen
private static final ObjectMapper MAPPER = new ObjectMapper(). ObjectMapper ist thread-safe und teuer zu konstruieren. Bei 9+ Klassen sind das 9+ überflüssige Instanzen.Fix
Eine shared Instanz in einer Utility-Klasse oder Konstanten-Interface.
Gefunden von
Starke, Fowler