package org.eclipse.tracecompass.btf.core.trace;
-import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.tracecompass.btf.core.event.BtfEvent;
import org.eclipse.tracecompass.common.core.NonNullUtils;
import org.eclipse.tracecompass.tmf.core.event.ITmfEvent;
*
* @author Alexandre Montplaisir
*/
+@NonNullByDefault
public final class BtfEventAspects {
private BtfEventAspects() {}
- private static final @NonNull Iterable<ITmfEventAspect> BTF_ASPECTS =
+ private static final Iterable<ITmfEventAspect> BTF_ASPECTS =
NonNullUtils.checkNotNull(ImmutableList.of(
ITmfEventAspect.BaseAspects.TIMESTAMP,
new BtfSourceAspect(),
}
@Override
- public String resolve(ITmfEvent event) {
+ public @Nullable String resolve(ITmfEvent event) {
if (!(event instanceof BtfEvent)) {
return EMPTY_STRING;
}
}
@Override
- public String resolve(ITmfEvent event) {
+ public @Nullable String resolve(ITmfEvent event) {
if (!(event instanceof BtfEvent)) {
return EMPTY_STRING;
}
*
* @return The aspects
*/
- public static @NonNull Iterable<ITmfEventAspect> getAspects() {
+ public static Iterable<ITmfEventAspect> getAspects() {
return BTF_ASPECTS;
}
}
\ No newline at end of file