Skip to content

Commit 4b0e9b0

Browse files
committed
Update style guide
1 parent 0a78002 commit 4b0e9b0

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

docs/style-guide.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ packages contain implementation details that should not be used by external cons
7878

7979
### `final` keyword usage
8080

81-
Public non-internal classes should be declared `final` where possible. Internal and non-public
82-
classes should not be declared `final`.
81+
Public non-internal classes should be declared `final` where possible.
8382

8483
Methods should only be declared `final` if they are in public non-internal non-final classes.
8584

@@ -124,19 +123,6 @@ Test classes and test methods should generally be package-protected (no explicit
124123
modifier) rather than `public`. This follows the principle of minimal necessary visibility and is
125124
sufficient for JUnit to discover and execute tests.
126125

127-
### AutoService
128-
129-
Use the `@AutoService` annotation when implementing SPI interfaces. This automatically generates the
130-
necessary `META-INF/services/` files at compile time, eliminating the need to manually create and
131-
maintain service registration files.
132-
133-
```java
134-
@AutoService(AutoConfigurationCustomizerProvider.class)
135-
public class MyCustomizerProvider implements AutoConfigurationCustomizerProvider {
136-
// implementation
137-
}
138-
```
139-
140126
### Gradle
141127

142128
- Use Kotlin instead of Groovy for build scripts

0 commit comments

Comments
 (0)