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 #2283

Open

Description

@krischik

AndroidAnnotations version:

4.7.0

Android compile SDK version:

30

Annotated code:

   @org.androidannotations.annotations.FragmentById (R.id.Main_Fragment)
   @org.jetbrains.annotations.Nullable
   protected MainFragment mainFragment;

Expected generated code:

import java.util.HashMap;
import java.util.Map;
import com.krischik.fit_import.MainFragment;
import android.app.Activity;
import android.content.Context;

Actual generated code:

import java.util.HashMap;
import java.util.Map;
import(@org.jetbrains.annotations.Nullable :: com.krischik.fit_import.MainFragment);
import android.app.Activity;
import android.content.Context;

Stacktrace in case of AA crash:

N/A

Activity

  1. krischik commented on Dec 17, 2020

    @krischik
    Author

    Quick check: Still happens with AndroidAnnotations version: 4.8.0.

  2. WonderCsabo commented on Dec 17, 2020

    @WonderCsabo
    Member

    As a workaround, did you trie to remove the nullable annotation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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