This PR adds Javadoc @since tag for SpringBootTest.UseMainMethod.
See gh-22405
Comment From: izeye
I pushed a8eb298 as the Spring Java Format doesn't seem to support this case yet.
Comment From: wilkinsona
Thanks, @izeye. Without a8eb298, I see a failure like this:
> Task :spring-boot-project:spring-boot-test:checkstyleMain
[ant:checkstyle] [ERROR] /Users/awilkinson/dev/spring-projects/spring-boot/main/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/context/SpringBootTest.java:191:19: Javadoc @since tag should not be used on private classes. [SpringJavadoc]
Do you see the same? Curiously, this should work due to the changes made for https://github.com/spring-io/spring-javaformat/issues/132.
Comment From: wilkinsona
And, of course, shortly after making that comment I realised what's going on. It's the difference between interface and @interface, that is to say an interface definition and an annotation definition.
Comment From: philwebb
See https://github.com/spring-io/spring-javaformat/issues/344
Comment From: philwebb
If we wait for a javaformat release we can amend the PR to not need the checkstyle exclusion.
Comment From: wilkinsona
Thank you, @izeye!