From 7e91b3098cec9ed75d8cf3abd6e2dac449358c8a Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Wed, 25 Nov 2026 00:15:19 +0100 Subject: [PATCH] Build the platform state key without String.format at workspace startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ContentDescriptionManager.getCurrentPlatformState runs during ResourcesPlugin activation and formatted one line per installed bundle with String.format. Plain concatenation produces the same key and avoids the formatter set-up at startup. Assisted-by: multiple AI agents and layers of automated tooling 🤖 --- .../core/internal/resources/ContentDescriptionManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/ContentDescriptionManager.java b/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/ContentDescriptionManager.java index 7cbb44cb57a..92b64548877 100644 --- a/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/ContentDescriptionManager.java +++ b/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/ContentDescriptionManager.java @@ -503,8 +503,7 @@ private static String getCurrentPlatformState() { return ""; //$NON-NLS-1$ } String ID = Arrays.stream(bundleContext.getBundles()) - .map(bundle -> String.format("%d %s %s", bundle.getBundleId(), bundle.getSymbolicName(), //$NON-NLS-1$ - bundle.getVersion())) + .map(bundle -> bundle.getBundleId() + " " + bundle.getSymbolicName() + " " + bundle.getVersion()) //$NON-NLS-1$ //$NON-NLS-2$ .sorted().collect(Collectors.joining(System.lineSeparator())); try { MessageDigest digest = MessageDigest.getInstance("SHA-256"); //$NON-NLS-1$