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

Faulty import statement generated #2283

Open
krischik opened this issue Oct 23, 2020 · 2 comments
Open

Faulty import statement generated #2283

krischik opened this issue Oct 23, 2020 · 2 comments

Comments

@krischik
Copy link

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

@krischik
Copy link
Author

Quick check: Still happens with AndroidAnnotations version: 4.8.0.

@WonderCsabo
Copy link
Member

WonderCsabo commented Dec 17, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants