File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ Consider statically importing the following commonly used methods and constants:
39
39
- ** Time unit constants**
40
40
- ` java.util.concurrent.TimeUnit.* ` (SECONDS, etc.)
41
41
- ** OpenTelemetry semantic convention constants**
42
- - All constants under ` io.opentelemetry.semconv.** ` , except for ` io.opentelemetry.semconv.SchemaUrls.* ` constants.
42
+ - All constants under ` io.opentelemetry.semconv.** ` , except for
43
+ ` io.opentelemetry.semconv.SchemaUrls.* ` constants.
43
44
44
45
### Class organization
45
46
@@ -64,7 +65,7 @@ methods.
64
65
Follow the principle of minimal necessary visibility. Use the most restrictive access modifier that
65
66
still allows the code to function correctly.
66
67
67
- ### Package conventions
68
+ ### Internal packages
68
69
69
70
Classes in ` .internal ` packages are not considered public API and may change without notice. These
70
71
packages contain implementation details that should not be used by external consumers.
@@ -75,7 +76,8 @@ packages contain implementation details that should not be used by external cons
75
76
76
77
### ` final ` keyword usage
77
78
78
- Public non-internal classes should be declared ` final ` where possible.
79
+ Public non-internal classes should be declared ` final ` where possible. Internal and non-public
80
+ classes should not be declared ` final ` .
79
81
80
82
Methods should only be declared ` final ` if they are in public non-internal non-final classes.
81
83
You can’t perform that action at this time.
0 commit comments