src/share/classes/com/sun/tools/javac/util/BaseFileManager.java

changeset 1442
fcf89720ae71
parent 1157
3809292620c9
child 1665
33b6a52f0037
equal deleted inserted replaced
1441:c78acf6c2f3e 1442:fcf89720ae71
1 /* 1 /*
2 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2009, 2012, 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
179 } 179 }
180 180
181 return false; 181 return false;
182 } 182 }
183 // where 183 // where
184 private static Set<Option> javacFileManagerOptions = 184 private static final Set<Option> javacFileManagerOptions =
185 Option.getJavacFileManagerOptions(); 185 Option.getJavacFileManagerOptions();
186 186
187 public int isSupportedOption(String option) { 187 public int isSupportedOption(String option) {
188 for (Option o : javacFileManagerOptions) { 188 for (Option o : javacFileManagerOptions) {
189 if (o.matches(option)) 189 if (o.matches(option))

mercurial