Friday, 15 August 2014

annotations - What dose @Trivial mean in Java? -



annotations - What dose @Trivial mean in Java? -

i have seen @trivial in java code in couple of places this:

@trivial public final class xyz {...}

what mean? effect have?

annotations can created custom, , looks custom annotation someone. illustration (from code):

/** * because never gonna give up, never gonna allow down! * * @author m0skit0 * */ @target(elementtype.method) @retention(retentionpolicy.runtime) public @interface rickastley { }

bonus quick guess @trivial meaning: class doesn't need javadoc because functionality trivial.

java annotations

No comments:

Post a Comment