public synchronized int METHOD_1 ( ) { int VAR_1 = 0 ; for ( TYPE_1 p : VAR_2 ) if ( p . METHOD_2 ( ) ) ++ VAR_1 ; return VAR_1 ; }
public int METHOD_1 ( ) { int VAR_1 = 0 ; synchronized ( VAR_2 ) { for ( TYPE_1 p : VAR_2 ) if ( p . METHOD_2 ( ) ) ++ VAR_1 ; } return VAR_1 ; }