Skip to content

Unclear javadoc in Instrumentation regarding return value #2806

@andimarek

Description

@andimarek

The Instrumentation docs seem to imply that you can return null InstrumentationContext, while in fact it will cause a NPE.

We should reference the

    private static final InstrumentationContext<Object> NO_OP = new SimpleInstrumentationContext<>();

as the preferred return value if you don't need a context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions