equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2014, 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 |
294 public static final long |
294 public static final long |
295 ExtendedStandardFlags = (long)StandardFlags | DEFAULT, |
295 ExtendedStandardFlags = (long)StandardFlags | DEFAULT, |
296 ModifierFlags = ((long)StandardFlags & ~INTERFACE) | DEFAULT, |
296 ModifierFlags = ((long)StandardFlags & ~INTERFACE) | DEFAULT, |
297 InterfaceMethodMask = ABSTRACT | STATIC | PUBLIC | STRICTFP | DEFAULT, |
297 InterfaceMethodMask = ABSTRACT | STATIC | PUBLIC | STRICTFP | DEFAULT, |
298 AnnotationTypeElementMask = ABSTRACT | PUBLIC, |
298 AnnotationTypeElementMask = ABSTRACT | PUBLIC, |
299 LocalVarFlags = FINAL | PARAMETER; |
299 LocalVarFlags = FINAL | PARAMETER, |
300 |
300 BridgeMethodMask = AccessFlags | FINAL | STRICTFP; |
301 |
301 |
302 public static Set<Modifier> asModifierSet(long flags) { |
302 public static Set<Modifier> asModifierSet(long flags) { |
303 Set<Modifier> modifiers = modifierSets.get(flags); |
303 Set<Modifier> modifiers = modifierSets.get(flags); |
304 if (modifiers == null) { |
304 if (modifiers == null) { |
305 modifiers = java.util.EnumSet.noneOf(Modifier.class); |
305 modifiers = java.util.EnumSet.noneOf(Modifier.class); |