@@ -227,55 +227,55 @@ public static final class Deserializer
227227 final String nextName = reader .nextName ();
228228 switch (nextName ) {
229229 case JsonKeys .PROFILE_SAMPLED :
230- Boolean profileSampled = reader .nextBooleanOrNull ();
230+ @ Nullable Boolean profileSampled = reader .nextBooleanOrNull ();
231231 if (profileSampled != null ) {
232232 options .profileSampled = profileSampled ;
233233 }
234234 break ;
235235 case JsonKeys .PROFILE_SAMPLE_RATE :
236- Double profileSampleRate = reader .nextDoubleOrNull ();
236+ @ Nullable Double profileSampleRate = reader .nextDoubleOrNull ();
237237 if (profileSampleRate != null ) {
238238 options .profileSampleRate = profileSampleRate ;
239239 }
240240 break ;
241241 case JsonKeys .CONTINUOUS_PROFILE_SAMPLED :
242- Boolean continuousProfileSampled = reader .nextBooleanOrNull ();
242+ @ Nullable Boolean continuousProfileSampled = reader .nextBooleanOrNull ();
243243 if (continuousProfileSampled != null ) {
244244 options .continuousProfileSampled = continuousProfileSampled ;
245245 }
246246 break ;
247247 case JsonKeys .TRACE_SAMPLED :
248- Boolean traceSampled = reader .nextBooleanOrNull ();
248+ @ Nullable Boolean traceSampled = reader .nextBooleanOrNull ();
249249 if (traceSampled != null ) {
250250 options .traceSampled = traceSampled ;
251251 }
252252 break ;
253253 case JsonKeys .TRACE_SAMPLE_RATE :
254- Double traceSampleRate = reader .nextDoubleOrNull ();
254+ @ Nullable Double traceSampleRate = reader .nextDoubleOrNull ();
255255 if (traceSampleRate != null ) {
256256 options .traceSampleRate = traceSampleRate ;
257257 }
258258 break ;
259259 case JsonKeys .PROFILING_TRACES_DIR_PATH :
260- String profilingTracesDirPath = reader .nextStringOrNull ();
260+ @ Nullable String profilingTracesDirPath = reader .nextStringOrNull ();
261261 if (profilingTracesDirPath != null ) {
262262 options .profilingTracesDirPath = profilingTracesDirPath ;
263263 }
264264 break ;
265265 case JsonKeys .IS_PROFILING_ENABLED :
266- Boolean isProfilingEnabled = reader .nextBooleanOrNull ();
266+ @ Nullable Boolean isProfilingEnabled = reader .nextBooleanOrNull ();
267267 if (isProfilingEnabled != null ) {
268268 options .isProfilingEnabled = isProfilingEnabled ;
269269 }
270270 break ;
271271 case JsonKeys .IS_CONTINUOUS_PROFILING_ENABLED :
272- Boolean isContinuousProfilingEnabled = reader .nextBooleanOrNull ();
272+ @ Nullable Boolean isContinuousProfilingEnabled = reader .nextBooleanOrNull ();
273273 if (isContinuousProfilingEnabled != null ) {
274274 options .isContinuousProfilingEnabled = isContinuousProfilingEnabled ;
275275 }
276276 break ;
277277 case JsonKeys .PROFILE_LIFECYCLE :
278- String profileLifecycle = reader .nextStringOrNull ();
278+ @ Nullable String profileLifecycle = reader .nextStringOrNull ();
279279 if (profileLifecycle != null ) {
280280 try {
281281 options .profileLifecycle = ProfileLifecycle .valueOf (profileLifecycle );
@@ -287,19 +287,19 @@ public static final class Deserializer
287287 }
288288 break ;
289289 case JsonKeys .PROFILING_TRACES_HZ :
290- Integer profilingTracesHz = reader .nextIntegerOrNull ();
290+ @ Nullable Integer profilingTracesHz = reader .nextIntegerOrNull ();
291291 if (profilingTracesHz != null ) {
292292 options .profilingTracesHz = profilingTracesHz ;
293293 }
294294 break ;
295295 case JsonKeys .IS_ENABLE_APP_START_PROFILING :
296- Boolean isEnableAppStartProfiling = reader .nextBooleanOrNull ();
296+ @ Nullable Boolean isEnableAppStartProfiling = reader .nextBooleanOrNull ();
297297 if (isEnableAppStartProfiling != null ) {
298298 options .isEnableAppStartProfiling = isEnableAppStartProfiling ;
299299 }
300300 break ;
301301 case JsonKeys .IS_START_PROFILER_ON_APP_START :
302- Boolean isStartProfilerOnAppStart = reader .nextBooleanOrNull ();
302+ @ Nullable Boolean isStartProfilerOnAppStart = reader .nextBooleanOrNull ();
303303 if (isStartProfilerOnAppStart != null ) {
304304 options .isStartProfilerOnAppStart = isStartProfilerOnAppStart ;
305305 }
0 commit comments