views:

84

answers:

1

According to the class ElementType in the API, you can annotate local variables and method parameters.

How is that done?

+5  A: 

Just the usual way:

void method(@SomeAttr int param){
    @SomeAttr 
    int local = param * 2;
}
gustafc