COLUMN_PROCESS
};
- private final Table<ITmfTrace, Object, List<ILinkEvent>> fLinks = NonNullUtils.checkNotNull(HashBasedTable.<ITmfTrace, Object, List<ILinkEvent>> create());
+ private final Table<ITmfTrace, Object, List<ILinkEvent>> fLinks = NonNullUtils.checkNotNull(HashBasedTable.create());
/** The trace to entry list hash map */
- private final Table<ITmfTrace, Object, TmfGraphStatistics> fObjectStatistics = NonNullUtils.checkNotNull(HashBasedTable.<ITmfTrace, Object, TmfGraphStatistics> create());
+ private final Table<ITmfTrace, Object, TmfGraphStatistics> fObjectStatistics = NonNullUtils.checkNotNull(HashBasedTable.create());
private final CriticalPathContentProvider fContentProvider = new CriticalPathContentProvider();
private @Nullable Object fCurrentObject;
@Override
- public @Nullable ITimeGraphEntry[] getElements(@Nullable Object inputElement) {
+ public ITimeGraphEntry[] getElements(@Nullable Object inputElement) {
ITimeGraphEntry[] ret = new ITimeGraphEntry[0];
if (inputElement instanceof List) {
List<?> list = (List<?>) inputElement;
buildEntryList(worker);
entries = workerEntries.get(worker);
}
+
return (entries == null) ?
new ITimeGraphEntry[0] :
NonNullUtils.checkNotNull(entries.toArray(new ITimeGraphEntry[entries.size()]));
}
private @Nullable TmfGraph getGraph(final ITmfTrace trace) {
- CriticalPathModule module = Iterables.getFirst(TmfTraceUtils.getAnalysisModulesOfClass(trace, CriticalPathModule.class), null);
+ CriticalPathModule module = Iterables.<@Nullable CriticalPathModule> getFirst(
+ TmfTraceUtils.getAnalysisModulesOfClass(trace, CriticalPathModule.class),
+ null);
if (module == null) {
- return null;
+ throw new IllegalStateException();
}
+
module.schedule();
if (!module.waitForCompletion()) {
return null;
if (trace == null) {
return null;
}
- CriticalPathModule module = Iterables.getFirst(TmfTraceUtils.getAnalysisModulesOfClass(trace, CriticalPathModule.class), null);
+ CriticalPathModule module = Iterables.<@Nullable CriticalPathModule> getFirst(
+ TmfTraceUtils.getAnalysisModulesOfClass(trace, CriticalPathModule.class), null);
if (module == null) {
- return null;
+ throw new IllegalStateException();
}
+
final TmfGraph graph = module.getCriticalPath();
if (graph == null) {
return null;
redraw();
for (ITimeGraphEntry child : entry.getChildren()) {
- if (child == null) {
- throw new NullPointerException();
- }
buildStatusEvents(trace, (CriticalPathEntry) child);
}
}