From 01bf1c9021c1f5c20de5acf74f6b9a5bf3f61b96 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 9 Mar 2021 00:08:03 +0100 Subject: [PATCH] Polishing --- .../main/java/org/springframework/util/ReflectionUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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