diff --git a/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java b/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java index c38e0bca39..2177481f0d 100644 --- a/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java +++ b/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2020 the original author or authors. + * Copyright 2002-2021 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. @@ -625,6 +625,7 @@ public abstract class ReflectionUtils { *

Thrown exceptions are handled via a call to {@link #handleReflectionException(Exception)}. * @param field the field to set * @param target the target object on which to set the field + * (or {@code null} for a static field) * @param value the value to set (may be {@code null}) */ public static void setField(Field field, @Nullable Object target, @Nullable Object value) { @@ -644,6 +645,7 @@ public abstract class ReflectionUtils { *

Thrown exceptions are handled via a call to {@link #handleReflectionException(Exception)}. * @param field the field to get * @param target the target object from which to get the field + * (or {@code null} for a static field) * @return the field's current value */ @Nullable