package hu.webarticum.treeprinter;

public final class UnicodeMode {
    
    private static boolean enabled = true;
    
    
    private UnicodeMode() {
        // static class
    }
    
    
    public static void setUnicodeAsDefault(boolean enabled) {
        UnicodeMode.enabled = enabled;
    }

    public static boolean isUnicodeDefault() {
        return enabled;
    }
    
}

@@ -78,32 +78,41 @@
  private static 
+volatile 
 boolean enabled 

Make enabled field volatile in UnicodeMode