@@ -78,7 +78,7 @@ static Observation start(String name, ObservationRegistry registry) {
78
78
* @return started observation
79
79
*/
80
80
static <T extends Context > Observation start (String name , Supplier <T > contextSupplier ,
81
- @ Nullable ObservationRegistry registry ) {
81
+ ObservationRegistry registry ) {
82
82
return createNotStarted (name , contextSupplier , registry ).start ();
83
83
}
84
84
@@ -91,7 +91,7 @@ static <T extends Context> Observation start(String name, Supplier<T> contextSup
91
91
* @param registry observation registry
92
92
* @return created but not started observation
93
93
*/
94
- static Observation createNotStarted (String name , @ Nullable ObservationRegistry registry ) {
94
+ static Observation createNotStarted (String name , ObservationRegistry registry ) {
95
95
return createNotStarted (name , Context ::new , registry );
96
96
}
97
97
@@ -113,7 +113,7 @@ static Observation createNotStarted(String name, @Nullable ObservationRegistry r
113
113
* @return created but not started observation
114
114
*/
115
115
static <T extends Context > Observation createNotStarted (String name , Supplier <T > contextSupplier ,
116
- @ Nullable ObservationRegistry registry ) {
116
+ ObservationRegistry registry ) {
117
117
if (registry == null || registry .isNoop ()) {
118
118
return NOOP ;
119
119
}
@@ -175,8 +175,7 @@ static <T extends Context> Observation createNotStarted(@Nullable ObservationCon
175
175
* @param registry observation registry
176
176
* @return started observation
177
177
*/
178
- static Observation start (ObservationConvention <Context > observationConvention ,
179
- @ Nullable ObservationRegistry registry ) {
178
+ static Observation start (ObservationConvention <Context > observationConvention , ObservationRegistry registry ) {
180
179
return start (observationConvention , Context ::new , registry );
181
180
}
182
181
@@ -197,7 +196,7 @@ static Observation start(ObservationConvention<Context> observationConvention,
197
196
* @return started observation
198
197
*/
199
198
static <T extends Context > Observation start (ObservationConvention <T > observationConvention ,
200
- Supplier <T > contextSupplier , @ Nullable ObservationRegistry registry ) {
199
+ Supplier <T > contextSupplier , ObservationRegistry registry ) {
201
200
return createNotStarted (observationConvention , contextSupplier , registry ).start ();
202
201
}
203
202
@@ -238,7 +237,7 @@ static <T extends Context> Observation start(@Nullable ObservationConvention<T>
238
237
* @return created but not started observation
239
238
*/
240
239
static Observation createNotStarted (ObservationConvention <Context > observationConvention ,
241
- @ Nullable ObservationRegistry registry ) {
240
+ ObservationRegistry registry ) {
242
241
return createNotStarted (observationConvention , Context ::new , registry );
243
242
}
244
243
@@ -269,7 +268,7 @@ static Observation createNotStarted(ObservationConvention<Context> observationCo
269
268
* @return created but not started observation
270
269
*/
271
270
static <T extends Context > Observation createNotStarted (ObservationConvention <T > observationConvention ,
272
- Supplier <T > contextSupplier , @ Nullable ObservationRegistry registry ) {
271
+ Supplier <T > contextSupplier , ObservationRegistry registry ) {
273
272
if (registry == null || registry .isNoop () || observationConvention == NoopObservationConvention .INSTANCE ) {
274
273
return NOOP ;
275
274
}
0 commit comments