public static synchronized void METHOD_1 ( TYPE_1 VAR_1 ) { VAR_2 . remove ( VAR_1 ) ; TYPE_2 . METHOD_2 ( ) ; }
public static void METHOD_1 ( TYPE_1 VAR_1 ) { synchronized ( VAR_2 ) { VAR_2 . remove ( VAR_1 ) ; } TYPE_2 . METHOD_2 ( ) ; }