Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-745

Unnecessary and thread-blocking "synchronized" in MVELSafeHelper.java

XMLWordPrintable

      Class org.drools.core.util.MVELSafeHelper, obsolete and thread-blocking "synchronized" keyword in static getter of a static final field:

      public class MVELSafeHelper {
      private static final MVELEvaluator evaluator;
      static

      { evaluator = KiePolicyHelper.isPolicyEnabled() ? new SafeMVELEvaluator() : new RawMVELEvaluator(); }

      public static synchronized MVELEvaluator getEvaluator()

      { return evaluator; }

      //
      }

              mfusco@redhat.com Mario Fusco
              andrew.b_jira Andrey Bichkevskiy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 5 minutes
                  5m
                  Remaining:
                  Remaining Estimate - 5 minutes
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified