Class ICUDebug

java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.ICUDebug

public final class ICUDebug extends Object
  • Constructor Details

    • ICUDebug

      public ICUDebug()
  • Method Details

    • enabled

      public static boolean enabled()
    • enabled

      public static boolean enabled(String name)
      Returns true if a certain named debug flag is enabled.

      To enable debugging when running maven one must define ICUDebug. For example this runs all the tests in LocaleMatcherTest without debugging:

          mvn package -f main/core/ -Dtest=LocaleMatcherTest
      
      And this runs the same tests, but with debugging enabled:
          mvn package -f main/core/ -Dtest=LocaleMatcherTest -DICUDebug=localematchertest
      
      You must check what name is used for the debugging flag by inspecting the code, it is not always the lowercase class name.
      Parameters:
      name - the name if the debug flag to enable
      Returns:
      true if the debugging should be enabled for that flag
    • value

      public static String value(String arg)