Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

faulty import statement generated when Nullable annotation is used. #2247

@krischik

Description

@krischik

AndroidAnnotations version:
4.6.0

Android compile SDK version:
28

Annotated code:

   @org.jetbrains.annotations.Nullable
   @org.androidannotations.annotations.FragmentById (net.sourceforge.uiq3.hp45.R.id.MainCalculator)
   protected CalculatorFragment Calculator;

Expected generated code:

import net.sourceforge.uiq3.hp45.Calculator_Fragment;

Actual generated code:

import(@org.jetbrains.annotations.Nullable :: net.sourceforge.uiq3.hp45.Calculator_Fragment);

Additional note:
I'm in transition form maven to gradle build. The maven build still works fine.

Removing the @org.jetbrains.annotations.Nullable will lead to other problem with the annotation preferences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions