diff --git a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/BuiltinUsage.java b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/BuiltinUsage.java index fe2b00ebc6..0c7a4871b2 100644 --- a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/BuiltinUsage.java +++ b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/BuiltinUsage.java @@ -1,16 +1,11 @@ package org.matheclipse.core.expression; -import java.util.concurrent.atomic.AtomicBoolean; import org.matheclipse.core.interfaces.IBuiltInSymbol; public class BuiltinUsage { private static final String[] USAGE = new String[ID.Zeta + 10]; - private static AtomicBoolean IS_INITIALIZED = new AtomicBoolean(); - - public static synchronized void init() { - IS_INITIALIZED.set(true); - + static { USAGE[ID.$IterationLimit] = "specifies the maximum number of times a reevaluation of an expression may happen"; @@ -619,9 +614,9 @@ public static String summaryText(String symbolStr) { * */ public static String summaryText(IBuiltInSymbol symbol) { - if (!IS_INITIALIZED.get()) { - init(); - } + // if (!IS_INITIALIZED.get()) { + // init(); + // } String str = USAGE[symbol.ordinal()]; return str != null ? str : ""; } diff --git a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ID.java b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ID.java index 36ec2e4891..8eeac72c29 100644 --- a/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ID.java +++ b/symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/ID.java @@ -2126,7 +2126,6 @@ public class ID { public final static Map STRING_TO_ID_MAP = new TreeMap(); static { - for (int i = 0; i < FUNCTION_NAMES.length; i++) { STRING_TO_ID_MAP.put(FUNCTION_NAMES[i], i); } diff --git a/symja_android_library/tools/src/main/java/org/matheclipse/core/preprocessor/FunctionIDGenerator.java b/symja_android_library/tools/src/main/java/org/matheclipse/core/preprocessor/FunctionIDGenerator.java index 44ea6ce070..751937eb79 100644 --- a/symja_android_library/tools/src/main/java/org/matheclipse/core/preprocessor/FunctionIDGenerator.java +++ b/symja_android_library/tools/src/main/java/org/matheclipse/core/preprocessor/FunctionIDGenerator.java @@ -34,7 +34,6 @@ public class FunctionIDGenerator { + " public final static Map STRING_TO_ID_MAP = new TreeMap();\n" // + "\n" // + " static {\n" // - + "\n" // + " for (int i = 0; i < FUNCTION_NAMES.length; i++) {\n" // + " STRING_TO_ID_MAP.put(FUNCTION_NAMES[i], i);\n" // + " }\n" //