From cfb55062d86bdf67c6edaa78d807ec92602e7cf7 Mon Sep 17 00:00:00 2001 From: Patrick Ziegler Date: Mon, 28 Jul 2025 18:36:18 +0200 Subject: [PATCH] Avoid usage of NumberUtils.isNumber(...) Use NumberUtils.isCreatable(...) as drop-in replacement. --- .../swing/databinding/model/bindings/VirtualParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.wb.swing.databinding/src/org/eclipse/wb/internal/swing/databinding/model/bindings/VirtualParser.java b/org.eclipse.wb.swing.databinding/src/org/eclipse/wb/internal/swing/databinding/model/bindings/VirtualParser.java index b186c968a..de47e239f 100644 --- a/org.eclipse.wb.swing.databinding/src/org/eclipse/wb/internal/swing/databinding/model/bindings/VirtualParser.java +++ b/org.eclipse.wb.swing.databinding/src/org/eclipse/wb/internal/swing/databinding/model/bindings/VirtualParser.java @@ -72,7 +72,7 @@ public static Object[] getBindings(AstEditor editor, tokenizer.nextToken(); // skip '[Virtual]' // prepare binding location String indexValue = tokenizer.nextToken(); - int index = NumberUtils.isNumber(indexValue) ? Integer.parseInt(indexValue) : 0; + int index = NumberUtils.isCreatable(indexValue) ? Integer.parseInt(indexValue) : 0; // prepare target/model orientation boolean isSwingTarget = "target".equals(tokenizer.nextToken()); // prepare reference to swing component