Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-951

Wrong null checker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.9
    • workflow manager
    • None
    • Don't Know (Unsure) - The default level

    Description

      Hi

      In a recent Github snapshot, I've found a following code smell.

      Path: workflow/src/main/java/org/apache/oodt/cas/workflow/engine/PrioritizedQueueBasedWorkflowEngine.java

      69   public PrioritizedQueueBasedWorkflowEngine(WorkflowInstanceRepository repo    ,
      70       PrioritySorter prioritizer, WorkflowLifecycleManager lifecycle,
      71       EngineRunner runner, WorkflowRepository modelRepo, long querierWaitSec    onds) {
      72     this.repo = repo;
      73     this.prioritizer = prioritizer != null ? new HighestFIFOPrioritySorter(1    ,
      74         50, 1) : prioritizer;
      75     this.lifecycle = lifecycle;
      76     this.modelRepo = modelRepo;
      

      In Line 73, prioritizer != null should be prioritizer == null? This might be a trivial issue but wanted to report just in case.

      Thanks!

      Attachments

        Activity

          People

            chrismattmann Chris A. Mattmann
            lifove JC
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: