Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Singleton 单例注解支持 #1

Open
houbb opened this issue Oct 23, 2019 · 0 comments
Open

@Singleton 单例注解支持 #1

houbb opened this issue Oct 23, 2019 · 0 comments

Comments

@houbb
Copy link
Owner

houbb commented Oct 23, 2019

效果:

public class UserService {
    public static final UserService INSTANCE = new UserService();

    public static UserService getInstance() {
          return INSTANCE;
    }
}

目前缺点:必须要结合编辑器插件,否则会报错。

@houbb houbb changed the title @Singleton 单例注解支持 @Singleton 单例注解支持 Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant