private static void analyzeNewStringSetContainsOldStringSetValues(StringSet a,StringSet b,String name,HashMap<String,Change> changes){
  if (a != null) {
    Iterator<String> iter=a.iterator();
    while (iter.hasNext()) {
      String val=iter.next();
      if (b != null && b.contains(val)) {
        continue;
      }
      String key=name + "." + val;
      Change change=new Change(key,val,null,name);
      changes.put(key,change);
    }
  }
 else   if (a == null && b != null) {
    String key=name;
    Change change=new Change(key,null,NOT_NULL,name);
    changes.put(key,change);
  }
}

private static void analyzeNewStringSetContainsOldStringSetValues ( StringSet a , StringSet b , String name , HashMap < String , Change > changes ) { if ( a != null ) { Iterator < String > iter = a . iterator ( ) ; while ( iter . hasNext ( ) ) { String val = iter . next ( ) ; if ( b != null && b . contains ( val ) ) { continue ; } String key = name + "." + val ; Change change = new Change ( key , val , null , name ) ; changes . put ( key , change ) ; } } else if ( a == null && b != null ) { String key = name ; Change change = new Change ( key , null , NOT_NULL , name ) ; changes . put ( key , change ) ; } }
makes a change entry for each key in stringset a that isn ' t in the stringset b . the change key is of the form name . key where name is the annotation name of the stringset , and key is a key in the stringset .
