package org.eclipse.linuxtools.internal.lttng2.kernel.ui.views.resources;
+import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;
import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.TimeGraphEntry;
}
private final int fId;
- private final ITmfTrace fTrace;
+ private final @NonNull ITmfTrace fTrace;
private final Type fType;
private final int fQuark;
* @param id
* The id of this entry
*/
- public ResourcesEntry(int quark, ITmfTrace trace, String name, long startTime, long endTime, Type type, int id) {
+ public ResourcesEntry(int quark, @NonNull ITmfTrace trace, String name,
+ long startTime, long endTime, Type type, int id) {
super(name, startTime, endTime);
fId = id;
fTrace = trace;
* @param id
* The id of this entry
*/
- public ResourcesEntry(ITmfTrace trace, String name, long startTime, long endTime, int id) {
+ public ResourcesEntry(@NonNull ITmfTrace trace, String name,
+ long startTime, long endTime, int id) {
this(-1, trace, name, startTime, endTime, Type.NULL, id);
}
* @param id
* The id of this entry
*/
- public ResourcesEntry(int quark, ITmfTrace trace, long startTime, long endTime, Type type, int id) {
+ public ResourcesEntry(int quark, @NonNull ITmfTrace trace,
+ long startTime, long endTime, Type type, int id) {
this(quark, trace, type.toString() + " " + id, startTime, endTime, type, id); //$NON-NLS-1$
}
*
* @return the entry's trace
*/
- public ITmfTrace getTrace() {
+ public @NonNull ITmfTrace getTrace() {
return fTrace;
}