tmf: Rework TmfTraceUtils#resolveIntEventAspectOfClassForEvent
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Mon, 4 Apr 2016 19:49:43 +0000 (15:49 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Wed, 20 Apr 2016 17:00:24 +0000 (13:00 -0400)
commitc15e897db268c29b97ad20c108bbb219d542728b
tree27d05a7797c52a2a41a3b8970392f5f01dc012bd
parentc247be9015c30ccc190efad7d63d929079e222f9
tmf: Rework TmfTraceUtils#resolveIntEventAspectOfClassForEvent

The generic type bound now ensures the aspect class passsed to
resolveIntEventAspectOfClassForEvent() really resolves to an
Integer, which means we can skip the check.

Also rework both aspect-finding methods to use flat Stream operations.

Change-Id: I8a341021699a69ac21b7a147c9ea91d58619fa99
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/69856
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/trace/TmfTraceUtils.java
This page took 0.025649 seconds and 5 git commands to generate.