From b32a2cadfbc63e21051b53e3eb3482d3dd1d7f1c Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Wed, 6 Mar 2024 14:49:46 +0100 Subject: [PATCH] Update class-level Javadoc for ParameterNameDiscoverer --- .../springframework/core/ParameterNameDiscoverer.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/ParameterNameDiscoverer.java b/spring-core/src/main/java/org/springframework/core/ParameterNameDiscoverer.java index 1679eb508421..f60d28b637ee 100644 --- a/spring-core/src/main/java/org/springframework/core/ParameterNameDiscoverer.java +++ b/spring-core/src/main/java/org/springframework/core/ParameterNameDiscoverer.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2024 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. @@ -24,10 +24,11 @@ /** * Interface to discover parameter names for methods and constructors. * - *
Parameter name discovery is not always possible, but various strategies are - * available to try, such as looking for debug information that may have been - * emitted at compile time, and looking for argname annotation values optionally - * accompanying AspectJ annotated methods. + *
Parameter name discovery is not always possible, but various strategies exist + * — for example, using the JDK's reflection facilities for introspecting + * parameter names (based on the "-parameters" compiler flag), looking for + * {@code argNames} annotation attributes optionally configured for AspectJ + * annotated methods, etc. * * @author Rod Johnson * @author Adrian Colyer