You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
insert-annotation-to-source is inserting annotation that was present on Constructors to field where is was non-present.
"Step to reproduce" uses @SideEffectFree but using @RequiresNonNull or @Deprecated instead of @SideEffectFree also yields the same result i.e. Annotation at the wrong place. This means this bug is not isolated to just @SideEffectFree
insert-annotation-to-sourceis inserting annotation that was present on Constructors to field where is was non-present."Step to reproduce" uses
@SideEffectFreebut using@RequiresNonNullor@Deprecatedinstead of@SideEffectFreealso yields the same result i.e. Annotation at the wrong place. This means this bug is not isolated to just@SideEffectFreeTo reproduce:
Test.java(Annotated)
Test.jaif
Test.java(Unannotated)
Result
Note:- This problem is only caused if
@SideEffectFreeis on Constructor. That is if there is@SideEffectFreeon method there will be no error.Example: (There will be no error in this case)