Polishing
This commit is contained in:
parent
669a689a50
commit
b23049bd27
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
4 * Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -152,7 +152,7 @@ public class InjectionMetadata {
|
|||
* Return an {@code InjectionMetadata} instance, possibly for empty elements.
|
||||
* @param elements the elements to inject (possibly empty)
|
||||
* @param clazz the target class
|
||||
* @return a new {@code InjectionMetadata} instance,
|
||||
* @return a new {@link #InjectionMetadata(Class, Collection)} instance,
|
||||
* or {@link #EMPTY} in case of no elements
|
||||
* @since 5.2
|
||||
*/
|
||||
|
|
@ -165,6 +165,7 @@ public class InjectionMetadata {
|
|||
* @param metadata the existing metadata instance
|
||||
* @param clazz the current target class
|
||||
* @return {@code true} indicating a refresh, {@code false} otherwise
|
||||
* @see #needsRefresh(Class)
|
||||
*/
|
||||
public static boolean needsRefresh(@Nullable InjectionMetadata metadata, Class<?> clazz) {
|
||||
return (metadata == null || metadata.needsRefresh(clazz));
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ dependencies {
|
|||
optional("javax.inject:javax.inject")
|
||||
optional("javax.interceptor:javax.interceptor-api")
|
||||
optional("javax.money:money-api")
|
||||
// TODO: overriding 2.0.1.Final, because of LocalValidatorFactoryBean
|
||||
// Overriding 2.0.1.Final due to Bean Validation 1.1 compatibility in LocalValidatorFactoryBean
|
||||
optional("javax.validation:validation-api:1.1.0.Final")
|
||||
optional("javax.xml.ws:jaxws-api")
|
||||
optional("org.aspectj:aspectjweaver")
|
||||
|
|
@ -35,12 +35,11 @@ dependencies {
|
|||
testCompile("org.codehaus.groovy:groovy-xml")
|
||||
testCompile("org.apache.commons:commons-pool2")
|
||||
testCompile("javax.inject:javax.inject-tck")
|
||||
// Substitute for "javax.management:jmxremote_optional:1.0.1_04" which
|
||||
// is not available on Maven Central
|
||||
testRuntime("org.glassfish.external:opendmk_jmxremote_optional_jar")
|
||||
testCompile("org.awaitility:awaitility")
|
||||
testRuntime("javax.xml.bind:jaxb-api")
|
||||
testRuntime("org.glassfish:javax.el")
|
||||
// Substitute for javax.management:jmxremote_optional:1.0.1_04 (not available on Maven Central)
|
||||
testRuntime("org.glassfish.external:opendmk_jmxremote_optional_jar")
|
||||
testRuntime("org.javamoney:moneta")
|
||||
testRuntime("org.junit.vintage:junit-vintage-engine") // for @Inject TCK
|
||||
testFixturesApi("org.junit.jupiter:junit-jupiter-api")
|
||||
|
|
|
|||
Loading…
Reference in New Issue