< prev index next >

src/java.base/share/classes/java/lang/reflect/AnnotatedElement.java

Print this page
rev 58552 : [mq]: 8241727-Typos-empty-lines-in-javadoc-inconsistent-indents-etc

*** 1,7 **** /* ! * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 272,282 **** */ default boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { return getAnnotation(annotationClass) != null; } ! /** * Returns this element's annotation for the specified type if * such an annotation is <em>present</em>, else null. * * @param <T> the type of the annotation to query for and return if present * @param annotationClass the Class object corresponding to the --- 272,282 ---- */ default boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { return getAnnotation(annotationClass) != null; } ! /** * Returns this element's annotation for the specified type if * such an annotation is <em>present</em>, else null. * * @param <T> the type of the annotation to query for and return if present * @param annotationClass the Class object corresponding to the
< prev index next >