equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2018, 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 |
357 opts.add(opt); |
357 opts.add(opt); |
358 |
358 |
359 return begin(opts, fileObjects).isOK(); |
359 return begin(opts, fileObjects).isOK(); |
360 } |
360 } |
361 |
361 |
362 @SuppressWarnings("deprecation") |
362 @SuppressWarnings("removal") |
363 private Result begin(List<String> options, Iterable<? extends JavaFileObject> fileObjects) { |
363 private Result begin(List<String> options, Iterable<? extends JavaFileObject> fileObjects) { |
364 fileManager = context.get(JavaFileManager.class); |
364 fileManager = context.get(JavaFileManager.class); |
365 if (fileManager == null) { |
365 if (fileManager == null) { |
366 JavacFileManager.preRegister(context); |
366 JavacFileManager.preRegister(context); |
367 fileManager = context.get(JavaFileManager.class); |
367 fileManager = context.get(JavaFileManager.class); |