langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/JavacFileManager.java
changeset 44019 284fa2ebd030
parent 43772 4e5350b7be75
child 44063 5f0cf4126949
equal deleted inserted replaced
44018:d7e24dd75175 44019:284fa2ebd030
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
  1003             return null;
  1003             return null;
  1004         }
  1004         }
  1005     }
  1005     }
  1006 
  1006 
  1007     @Override @DefinedBy(Api.COMPILER)
  1007     @Override @DefinedBy(Api.COMPILER)
       
  1008     public void setLocationForModule(Location location, String moduleName, Collection<? extends Path> paths)
       
  1009             throws IOException {
       
  1010         nullCheck(location);
       
  1011         checkModuleOrientedOrOutputLocation(location);
       
  1012         locations.setLocationForModule(location, nullCheck(moduleName), nullCheck(paths));
       
  1013     }
       
  1014 
       
  1015     @Override @DefinedBy(Api.COMPILER)
  1008     public String inferModuleName(Location location) {
  1016     public String inferModuleName(Location location) {
  1009         checkNotModuleOrientedLocation(location);
  1017         checkNotModuleOrientedLocation(location);
  1010         return locations.inferModuleName(location);
  1018         return locations.inferModuleName(location);
  1011     }
  1019     }
  1012 
  1020