Hello, I recently started to read Spring documentations and I really enjoy it. Thank you for your great contributions. I think I found something to fix in the doc that explains annotation @Autowired.

In the doc, java code shows setter-based injection

    public class MovieRecommender {
        private Set<MovieCatalog> movieCatalogs;
        @Autowired
        public void setMovieCatalogs(Set<MovieCatalog> movieCatalogs) {
            this.movieCatalogs = movieCatalogs;
        }
        // ...
    }

and Kotlin code is property-based injection example.

class MovieRecommender {
        @Autowired
        lateinit var movieCatalogs: Set<MovieCatalog>
        // ...
    }

but both must be equivalent as much as possible cause they are in the same box.

Comment From: pivotal-cla

@lsc4719 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@lsc4719 Thank you for signing the Contributor License Agreement!

Comment From: lsc4719

I added some more set:s due to the same reason.

Comment From: lsc4719

I closed this PR. Cause for Kotlin, I guess, setter-based/property-bases injections are not distinguishable. In strict sense, property-bases injection doesn't exist.