@Test public void changeSpanName_does_nothing_if_passed_null_newName() { Span spanMock = mock(Span.class); SpanMutator.changeSpanName(spanMock, null); verifyZeroInteractions(spanMock); }
public static void changeSpanName(@Nullable Span span, @Nullable String newName) { if (span == null) { return; } if (StringUtils.isBlank(newName)) { return; } span.setSpanName(newName); }
SpanMutator { public static void changeSpanName(@Nullable Span span, @Nullable String newName) { if (span == null) { return; } if (StringUtils.isBlank(newName)) { return; } span.setSpanName(newName); } }
SpanMutator { public static void changeSpanName(@Nullable Span span, @Nullable String newName) { if (span == null) { return; } if (StringUtils.isBlank(newName)) { return; } span.setSpanName(newName); } private  SpanMutator(); }
SpanMutator { public static void changeSpanName(@Nullable Span span, @Nullable String newName) { if (span == null) { return; } if (StringUtils.isBlank(newName)) { return; } span.setSpanName(newName); } private  SpanMutator(); static void changeSpanName(@Nullable Span span, @Nullable String newName); }
SpanMutator { public static void changeSpanName(@Nullable Span span, @Nullable String newName) { if (span == null) { return; } if (StringUtils.isBlank(newName)) { return; } span.setSpanName(newName); } private  SpanMutator(); static void changeSpanName(@Nullable Span span, @Nullable String newName);  }