Skip to content

Commit a905412

Browse files
committed
Allow @Autowired to be declared on parameters
Issue: SPR-14057
1 parent 6e3fac8 commit a905412

File tree

1 file changed

+2
-2
lines changed
  • spring-beans/src/main/java/org/springframework/beans/factory/annotation

1 file changed

+2
-2
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/annotation/Autowired.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -64,7 +64,7 @@
6464
* @see Qualifier
6565
* @see Value
6666
*/
67-
@Target({ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.ANNOTATION_TYPE})
67+
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD, ElementType.ANNOTATION_TYPE})
6868
@Retention(RetentionPolicy.RUNTIME)
6969
@Documented
7070
public @interface Autowired {

0 commit comments

Comments
 (0)