Skip to content

Commit

Permalink
Allow @Autowired to be declared on parameters
Browse files Browse the repository at this point in the history
Issue: SPR-14057
  • Loading branch information
jhoeller committed Mar 18, 2016
1 parent 6e3fac8 commit a905412
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2012 the original author or authors.
* Copyright 2002-2016 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.
Expand Down Expand Up @@ -64,7 +64,7 @@
* @see Qualifier
* @see Value
*/
@Target({ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.ANNOTATION_TYPE})
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Autowired {
Expand Down

0 comments on commit a905412

Please sign in to comment.