Sort Order

Lets you specify the order in which the individual modifiers should appear. Select an entry in the list and use the Up and Down buttons to move it to the desired location.

The list contains the different available Java modifiers as of J2SE 5.0. The @annotation entry represents marker annotations.

Example 2.708. Marker annotation placed before public modifier

@Preliminary public class TimeTravel {
    ...
}

Example 2.709. Marker annotation placed after public modifier

public @Preliminary class TimeTravel {
    ...
}

Please note that normal annotations and single-member annotations are always printed before all other modifiers!

Example 2.710. Normal annotation

@RequestForEnhancement(
    id       = 2868724,
    synopsis = "Provide time-travel functionality",
    engineer = "Mr. Peabody",
    date     = "4/1/2004"
)
public static void travelThroughTime(Date destination) {
    ...
}

Example 2.711. Single-member annotation

@Copyright("2002 Yoyodyne Propulsion Systems, Inc., All rights reserved.")
public class OscillationOverthruster {
    ...
}