public synchronized int METHOD_1 ( TYPE_1 node ) { TYPE_1 temp = VAR_1 ; int position = 0 ; if ( temp != null ) { if ( temp . equals ( node ) ) { return position ; } position ++ ; temp = temp . METHOD_2 ( ) ; } return - 1 ; }

public synchronized int METHOD_1 ( TYPE_1 node ) { TYPE_1 temp = VAR_1 ; int position = 0 ; while ( temp != null ) { if ( temp . equals ( node ) ) { return position ; } position ++ ; temp = temp . METHOD_2 ( ) ; } return - 1 ; }
