Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5078183

(ann) add a new annotation in java.lang : @Generated("generator")

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • x86
    • windows_xp

      Name: rmT116609 Date: 07/25/2004


      A DESCRIPTION OF THE REQUEST :
      This annotation may be used by code generator to mark generated classes.
        Tools (beautifiers, static analyzers etc) may check if the class is generated or not.

      JUSTIFICATION :
      See above


      ---------- BEGIN SOURCE ----------
      package java.lang;
      import java.lang.annotation.ElementType;
      import java.lang.annotation.Retention;
      import java.lang.annotation.RetentionPolicy;
      import java.lang.annotation.Target;
      @Retention(RetentionPolicy.RUNTIME)
      @Target(ElementType.TYPE)
      public @interface Generated {
         String generator();
      }


      ---------- END SOURCE ----------
      (Incident Review ID: 287011)
      ======================================================================

            darcy Joe Darcy
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: