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

去掉final呗 #11

Closed
djun100 opened this issue Aug 7, 2018 · 1 comment
Closed

去掉final呗 #11

djun100 opened this issue Aug 7, 2018 · 1 comment

Comments

@djun100
Copy link

djun100 commented Aug 7, 2018

我想放到个人工具库里,直接依赖这个库,然后用子类来扩展。不然还要复制一遍

@Blankj
Copy link
Owner

Blankj commented Aug 7, 2018

你要是想那样拓展那你就拷贝过去就好了,不要引用我的库好了,用子类 log 的堆栈可能会出问题的,初始化 setStackOffset 可以解决。写成 final 就是为了杜绝你们继承哈,因为工具类已经是静态了,和对象其实没有关系,所以也就没有必要继承,你要拓展推荐你可以自己再写个类暴露你需要的 api 出来,然后 api 里可以调用我的 ALog

@djun100 djun100 closed this as completed Aug 7, 2018
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

2 participants