源示例:
// this is package visible interface
interface MyInterface {
void foo();
}
public class MyClass1 implements MyInterface {
// some public class members which should not be obfuscated
// ...
// this is MyInterface implementation, this method should be obfuscated:
void foo() {}
}
// other classes which implement MyInterface
...
如何在仅混淆 MyInterface.foo() 实现的同时将所有公共成员保留在 MyClass1 和其他类中。