Comment by [email protected]: General Comment:
What do you think of alternate ways of reducing the runtime impact?
The length test is one of the first things done in String.equals and you're adding some small overhead, so to me it seems like break even. What about (assuming annotationName not null and not empty)
return annotationName.charAt(0) = '$' ? annotationName.equals("$Nullable") : annotationName.equals("Nullable");
However, the idea by jessewil rulez. For more information: http://code.google.com/p/google-guice/source/detail?r=1324 -- You received this message because you are subscribed to the Google Groups "google-guice-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice-dev?hl=en.
