-
Bug
-
Resolution: Fixed
-
P4
-
12
-
b12
PROBLEM
------
There are two places to display the @Name annotation.
1. output the @Name annotation if the type name contains ".".
2. when displaying all the annotations in a type, the @Name annotation is also outputted.
The current implementation has three patterns to output @Name annotation.
A. Events with "." in the type name is outputted the @Name annotation at locations 1 and 2.
B. Events without "." in the type name is outputted the @Name annotation at location 2.
C. Do not be outputted the @Name annotation for primitive types.
Solution
-----
These three patterns should be modified into two patterns as followings.
a. Primitive types do not be outputted the @Name annotation.
b. Non-primitive types are outputted @Name annotation regardless of whether the type name contains ".".
------
There are two places to display the @Name annotation.
1. output the @Name annotation if the type name contains ".".
2. when displaying all the annotations in a type, the @Name annotation is also outputted.
The current implementation has three patterns to output @Name annotation.
A. Events with "." in the type name is outputted the @Name annotation at locations 1 and 2.
B. Events without "." in the type name is outputted the @Name annotation at location 2.
C. Do not be outputted the @Name annotation for primitive types.
Solution
-----
These three patterns should be modified into two patterns as followings.
a. Primitive types do not be outputted the @Name annotation.
b. Non-primitive types are outputted @Name annotation regardless of whether the type name contains ".".