legacy/src/main/java/ucar/nc2/grib/GribVariableRenamer.java
private HashMap<String, Renamer> makeMapBeans(List<VariableRenamerBean> vbeans) {
    HashMap<String, Renamer> map = new HashMap<>(3000);
    for (VariableRenamerBean vbean : vbeans) {

      // construct the old -> new mapping
      Renamer mbean = map.get(vbean.getOldName());
      if (mbean == null) {
        mbean = new Renamer(vbean.getOldName());
        map.put(vbean.getOldName(), mbean);
      }
      mbean.add(vbean);
    }
    
    for (Renamer rmap : map.values()) {
      rmap.finish();
    }

    return map;
  }
private HashMap<String, Renamer> makeMapBeans(List<VariableRenamerBean> vbeans) {
    HashMap<String, Renamer> map = new HashMap<>(3000);
    for (VariableRenamerBean vbean : vbeans) {

      // construct the old -> new mapping
      Renamer mbean = map.get(vbean.getOldName());
      if (mbean == null) {
        mbean = new Renamer(vbean.getOldName());
        map.put(vbean.getOldName(), mbean);
      }
      mbean.add(vbean);
    }
    
    for (Renamer rmap : map.values()) {
      rmap.finish();
    }

    return map;
  }
private HashMap < String , Renamer > makeMapBeans ( List < VariableRenamerBean > vbeans ) { HashMap < String , Renamer > map = new HashMap <> ( 3000 ) ; for ( VariableRenamerBean vbean : vbeans ) { // construct the old -> new mapping
 Renamer mbean = map . get ( vbean . getOldName ( ) ) ; if ( mbean == null ) { mbean = new Renamer ( vbean . getOldName ( ) ) ; map . put ( vbean . getOldName ( ) , mbean ) ; } mbean . add ( vbean ) ; } for ( Renamer rmap : map . values ( ) ) { rmap . finish ( ) ; } return map ; }
////////////////////////////////////////////////
////////////////////////////////////////////////