public synchronized void METHOD_1 ( TYPE_1 VAR_1 ) { this . VAR_1 = VAR_1 ; for ( TYPE_2 c : VAR_2 ) { if ( c != null ) c . METHOD_1 ( VAR_1 ) ; } }
public synchronized void METHOD_1 ( TYPE_1 VAR_1 ) { this . VAR_1 = VAR_1 ; synchronized ( VAR_2 ) { for ( TYPE_2 c : VAR_2 ) { if ( c != null ) c . METHOD_1 ( VAR_1 ) ; } } }