Announcement Announcement Module
Collapse
No announcement yet.
Adding final modifier to method parameter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding final modifier to method parameter

    Hello!

    I am trying to write an .aj which has a final method parameter such as:

    Code:
    public void a(final String b) { }
    The MethodMetadataBuilder accepts a List<AnnotatedJavaType> and a List<JavaSymbolName> for parameter types and names, however neither of those things allow me to set modifiers and there is no way to pass a list of parameter modifiers.

    Is there a way to set the final modifier on a method parameter?
Working...
X