Summary: | Specific annotations formatting for method return parameters | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Nicolas Damour <nicolas.damour> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | VERIFIED INVALID | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | markus.kell.r |
Version: | 3.4 | ||
Target Milestone: | 3.5 M1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Nicolas Damour
2008-06-16 08:23:41 EDT
(Copy of bug 122247 comment 45) Note that the Java language up to (including) 1.6 does not support annotations on the return type. All annotations that appear before the return type of a method belong to the whole method declaration. > @MyAnnotation1 > public @NonNull Set getReturnValue(@NonNull String myParam1) { From a language point of view, this is equivalent to @NonNull @MyAnnotation1 public Set getReturnValue(@NonNull String myParam1) { I think we shouldn't change the formatter right now. We should only add a new category if Java 1.7 introduces annotations on all type references. Yeah, you're right. I somehow overlooked what you explained, so that my request makes no sense at all. Thank you for your contribution. Nicolas. Verified for 3.5M1 using I20080805-1307 |