{"action":"opened","issue":{"url":"https://api.github.com/repos/xiaxiaocao/apk-parser/issues/28","labels_url":"https://api.github.com/repos/xiaxiaocao/apk-parser/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/xiaxiaocao/apk-parser/issues/28/comments","events_url":"https://api.github.com/repos/xiaxiaocao/apk-parser/issues/28/events","html_url":"https://github.com/xiaxiaocao/apk-parser/issues/28","id":59449443,"number":28,"title":"jdk6 branch ：类ApkParser的方法parseCertificate一点疑问","user":{"login":"lumeng689","id":1297158,"avatar_url":"https://avatars.githubusercontent.com/u/1297158?v=3","gravatar_id":"","url":"https://api.github.com/users/lumeng689","html_url":"https://github.com/lumeng689","followers_url":"https://api.github.com/users/lumeng689/followers","following_url":"https://api.github.com/users/lumeng689/following{/other_user}","gists_url":"https://api.github.com/users/lumeng689/gists{/gist_id}","starred_url":"https://api.github.com/users/lumeng689/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumeng689/subscriptions","organizations_url":"https://api.github.com/users/lumeng689/orgs","repos_url":"https://api.github.com/users/lumeng689/repos","events_url":"https://api.github.com/users/lumeng689/events{/privacy}","received_events_url":"https://api.github.com/users/lumeng689/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-02T07:59:37Z","updated_at":"2015-03-02T07:59:37Z","closed_at":null,"body":"您好，我在使用中发现一个疑问，麻烦帮忙解答一下：\r\n\r\nApkParser类的方法parseCertificate中，看代码是通过循环压缩包内文件来查找以.RSA或.DSA文件，如果apk包内没有找到这个文件的话，entry变量会保留最后一次的那个文件，是否在while语句块里的最后一句处理一下，设置 entry = null?\r\n<pre>\r\n        while (enu.hasMoreElements()) {\r\n            entry = enu.nextElement();\r\n            if (entry.isDirectory()) {\r\n                continue;\r\n            }\r\n            if (entry.getName().toUpperCase().endsWith(\".RSA\")\r\n                    || entry.getName().toUpperCase().endsWith(\".DSA\")) {\r\n                break;\r\n            }\r\n            // 是否应该这么处理一下？\r\n            entry = null;\r\n        }\r\n</pre>"}}