public static List<String> checkDuplicateAddress(LinkedHashMap<String,String> map1,LinkedHashMap<String,String> map2){
  List<String> dup1=checkDuplicate(map1);
  List<String> dup2=checkDuplicate(map2);
  List<String> dup=new ArrayList<String>();
  dup.addAll(dup1);
  dup.addAll(dup2);
  if (!dup.isEmpty()) {
    log.warn("There are duplicate addresses entered: {}/{}",dup.size(),dup);
  }
  return dup;
}

public static List < String > checkDuplicateAddress ( LinkedHashMap < String , String > map1 , LinkedHashMap < String , String > map2 ) { List < String > dup1 = checkDuplicate ( map1 ) ; List < String > dup2 = checkDuplicate ( map2 ) ; List < String > dup = new ArrayList < String > ( ) ; dup . addAll ( dup1 ) ; dup . addAll ( dup2 ) ; if ( ! dup . isEmpty ( ) ) { log . warn ( "There are duplicate addresses entered: {}/{}" , dup . size ( ) , dup ) ; } return dup ; }
check if there are duplicate addresses entered
