Polishing

This commit is contained in:
Juergen Hoeller
2020-02-06 12:59:55 +01:00
parent 669a689a50
commit b23049bd27
2 changed files with 6 additions and 6 deletions

View File

@@ -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));