Skip to content

Commit e3ceb9b

Browse files
committed
Polish @target declarations for stereotype annotations
1 parent 5ab966f commit e3ceb9b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: spring-context/src/main/java/org/springframework/stereotype/Controller.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -39,7 +39,7 @@
3939
* @see org.springframework.web.bind.annotation.RequestMapping
4040
* @see org.springframework.context.annotation.ClassPathBeanDefinitionScanner
4141
*/
42-
@Target({ElementType.TYPE})
42+
@Target(ElementType.TYPE)
4343
@Retention(RetentionPolicy.RUNTIME)
4444
@Documented
4545
@Component

Diff for: spring-context/src/main/java/org/springframework/stereotype/Repository.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -55,7 +55,7 @@
5555
* @see org.springframework.dao.DataAccessException
5656
* @see org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor
5757
*/
58-
@Target({ElementType.TYPE})
58+
@Target(ElementType.TYPE)
5959
@Retention(RetentionPolicy.RUNTIME)
6060
@Documented
6161
@Component

Diff for: spring-context/src/main/java/org/springframework/stereotype/Service.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -41,7 +41,7 @@
4141
* @see Component
4242
* @see Repository
4343
*/
44-
@Target({ElementType.TYPE})
44+
@Target(ElementType.TYPE)
4545
@Retention(RetentionPolicy.RUNTIME)
4646
@Documented
4747
@Component

0 commit comments

Comments
 (0)