如何防止逐渐混淆更改代码?
我对proguard混淆有问题,它更改了代码的某些部分并导致错误 例如,我有以下代码:
for (int i=0;i <rowsNb; i++){
try {
Integer.parseInt (model.getValueAt(i,0));
catch (Exception){
continue;
}
doSomething();
}
混淆之后,代码的此部分变为这样:
for (int i=0;i <rowsNb; i++){
try {
model.getValueAt(i,0);
catch (Exception){}
doSomething();
}
它删除Integer.parseint()方法,我用来检查第一列是否是一个整数,这是执行dosothing()的条件,而无需错误
而且我在班级名称上还有另一个问题,有些课程仍然有其原始名称(在混淆之前的名称),
谢谢
I have a problem with proguard obfuscation it changes some parts of the code and causes errors
for example I have the following code:
for (int i=0;i <rowsNb; i++){
try {
Integer.parseInt (model.getValueAt(i,0));
catch (Exception){
continue;
}
doSomething();
}
after obfuscation this part of code becomes like this:
for (int i=0;i <rowsNb; i++){
try {
model.getValueAt(i,0);
catch (Exception){}
doSomething();
}
it deletes the integer.parseInt() method that I use to check if the first column is an integer which is a condition to execute doSomething() without errors
and I have another problem with class names, some classes still have their original names (their names before obfuscation)
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)