operator/src/main/java/oracle/kubernetes/operator/work/Step.java
private static Step lastStepIfNoDuplicate(Step stepGroup1, Step stepGroup2) {
    Step s = stepGroup1;
    List<Step> stepGroup2Array = stepToArray(stepGroup2);
    while (s.next != null) {
      if (stepGroup2Array.contains(s.next)) {
        return null;
      }
      s = s.next;
    }
    return s;
  }
/**
   * Return last step in stepGroup1, or null if any step appears in both step groups.
   *
   * @param stepGroup1 Step that we want to find the last step for
   * @param stepGroup2 Step to check for duplicates
   *
   * @return last step in stepGroup1, or null if any step appears in both step groups.
   */
Return last step in stepGroup1, or null if any step appears in both step groups.
@param stepGroup1 Step that we want to find the last step for
@param stepGroup2 Step to check for duplicates

@return last step in stepGroup1, or null if any step appears in both step groups.
Return last step in stepGroup1 or null if any step appears in both step groups . @param stepGroup1 Step that we want to find the last step for @param stepGroup2 Step to check for duplicates @return last step in stepGroup1 or null if any step appears in both step groups .
private static Step lastStepIfNoDuplicate(Step stepGroup1, Step stepGroup2) {
    Step s = stepGroup1;
    List<Step> stepGroup2Array = stepToArray(stepGroup2);
    while (s.next != null) {
      if (stepGroup2Array.contains(s.next)) {
        return null;
      }
      s = s.next;
    }
    return s;
  }
private static Step lastStepIfNoDuplicate ( Step stepGroup1 , Step stepGroup2 ) { Step s = stepGroup1 ; List < Step > stepGroup2Array = stepToArray ( stepGroup2 ) ; while ( s . next != null ) { if ( stepGroup2Array . contains ( s . next ) ) { return null ; } s = s . next ; } return s ; }
Return last step in stepGroup1, or null if any step appears in both step groups.
Return last step in stepGroup1 or null if any step appears in both step groups .