Annotation Type NotYetImplemented


  • @Documented
    @Target({METHOD,CONSTRUCTOR})
    @Retention(RUNTIME)
    public @interface NotYetImplemented
    Eclipse and other tools will generate default implementation for you if you want to implement an interface. The problem with this implementation is that you must always overwrite this default implementation.

    To be able to mark these methods as "not yet finished" you can put this annotation in front of it. If you add a text this text is used for thrown UnsupportedOperationException. You can add "{0}" if you want to see the method name in the exception e.g. @NotYetImplemented("don''t call {0} today").

    NOTE: a single quote must be written as "''" (see example above) because java.text.MessageFormat is used here for the error message.

    See patterntesting.sample.Fraction in PatternTesting Samples as an example how to use it.

    Since:
    19.10.2008
    Version:
    $Revision: 1.6 $
    Author:
    oliver
    See Also:
    UnsupportedOperation, MessageFormat
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      You can define the text here which is used for the thrown UnsupportedOperationException.
    • Element Detail

      • value

        java.lang.String value
        You can define the text here which is used for the thrown UnsupportedOperationException. You can add "{0}" if you want to see the method name in the exception e.g. @NotYetImplemented("don''t call {0} today").
        Returns:
        the string
        Default:
        "{0} is not yet implemented"