common: Add utility class for non-null things
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 2 Dec 2014 13:58:28 +0000 (08:58 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 11 Dec 2014 15:00:01 +0000 (10:00 -0500)
commitcd3fbf5ce6b7e68ec372e78a5006afac175ed6f4
tree12c46ec01cd3ed0023e19dbff486473fdb8e46e7
parentfa62dc1db326c3608b727b3303afa58d581f8843
common: Add utility class for non-null things

These utility methods should help avoid the crufty

    @SuppressWarnings("null")
    @NonNull ret = ...;
    return ret;

pattern we had been using so far.

Change-Id: I8c1aa8469dc466a1b42aae799b24789dc23837cf
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/37516
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
org.eclipse.tracecompass.common.core/src/org/eclipse/tracecompass/common/core/NonNullUtils.java [new file with mode: 0644]
This page took 0.025373 seconds and 5 git commands to generate.