Changeset 7365


Ignore:
Timestamp:
12/08/10 20:16:43 (9 years ago)
Author:
aivar
Message:

Moved the annotations. Changed the way the annotations set defaults. Unfortunately there is a Java bug so that the previous way of setting default Input and Output to an array of a single Img does not work when you compile with an annotation processor present. So now the default is an empty array.

Location:
branches/maven/projects/deep-zoom-plugin/src/main/java/loci/plugin/annotations
Files:
1 added
3 copied

Legend:

Unmodified
Added
Removed
  • branches/maven/projects/deep-zoom-plugin/src/main/java/loci/plugin/annotations/Img.java

    r7340 r7365  
    44 */ 
    55 
    6 package loci.nodescheduler.annotations; 
     6package loci.plugin.annotations; 
    77 
    88import java.lang.annotation.*; 
  • branches/maven/projects/deep-zoom-plugin/src/main/java/loci/plugin/annotations/Input.java

    r7341 r7365  
    44 */ 
    55 
    6 package loci.nodescheduler.annotations; 
     6package loci.plugin.annotations; 
    77 
    88import java.lang.annotation.Retention; 
     
    1515@Retention(RetentionPolicy.RUNTIME) 
    1616public @interface Input { 
    17     Img[] value() default { @Img }; 
     17    public final String DEFAULT = "INPUT"; 
     18    //Bug ID: 6954300 
     19    // Annotation with generics causes javac to fail when annotation processor present 
     20    // State: 3-Accepted, bug Priority: 4-Low 
     21    // Submit Date: 20-MAY-2010 
     22    //http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6954300 
     23    //Img[] value() default { @Img }; 
     24    //Img[] value() default { @Img("DEFAULT") }; 
     25    Img[] value() default { }; 
    1826} 
  • branches/maven/projects/deep-zoom-plugin/src/main/java/loci/plugin/annotations/Output.java

    r7342 r7365  
    44 */ 
    55 
    6 package loci.nodescheduler.annotations; 
     6package loci.plugin.annotations; 
    77 
    88import java.lang.annotation.Retention; 
     
    1616@Retention(RetentionPolicy.RUNTIME) 
    1717public @interface Output { 
    18     Img[] value() default { @Img }; 
     18    public final String DEFAULT = "OUTPUT"; 
     19    // see Input 
     20    //Img[] value() default { @Img }; 
     21    Img[] value() default {}; 
    1922} 
Note: See TracChangeset for help on using the changeset viewer.