What does the double asterisk mean in proguard rules?

我的梦境 提交于 2019-12-03 20:42:41

问题


What does this rule mean in proguard for example:

-keep class myjava.** {*;}

I understand {*;} part would mean all members and methods in the class. But what does the 2 asterisk mean in the package name?.

Thanks in advance.


回答1:


From the manual:

Types in classname, annotationtype, returntype, and argumenttype can contain
wildcards: '?' for a single character, '*' for any number of characters (but
not the package separator), '**' for any number of (any) characters, '%' for
any primitive type, '***' for any type, and '...' for any number of arguments.


来源:https://stackoverflow.com/questions/21727162/what-does-the-double-asterisk-mean-in-proguard-rules

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!