Polishing
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user