Skip to content

Commit

Permalink
findNrPrevSteps is deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Batchelor committed Jan 24, 2018
1 parent 6cf0f2e commit 30fc3fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engine/src/main/java/org/pentaho/di/trans/TransMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -3772,9 +3772,10 @@ private boolean hasLoop( StepMeta stepMeta, StepMeta lookup, HashSet<StepMeta> c

checkedEntries.add( stepMeta );

int nr = findNrPrevSteps( stepMeta );
List<StepMeta> prevSteps = findPreviousSteps( stepMeta, info );
int nr = prevSteps.size();
for ( int i = 0; i < nr; i++ ) {
StepMeta prevStepMeta = findPrevStep( stepMeta, i );
StepMeta prevStepMeta = prevSteps.get( i );
if ( prevStepMeta != null && ( prevStepMeta.equals( lookup )
|| ( !checkedEntries.contains( prevStepMeta ) && hasLoop( prevStepMeta, lookup == null ? stepMeta : lookup, checkedEntries ) ) ) ) {
hasLoop = true;
Expand Down

0 comments on commit 30fc3fc

Please sign in to comment.