PMD: enable and obey java-unusedcode

This commit is contained in:
Daniel Martí 2016-04-17 11:39:00 +01:00
parent c240283ad4
commit 00c138e42f
2 changed files with 1 additions and 2 deletions

View File

@ -210,7 +210,7 @@ pmd {
task pmd(type: Pmd, dependsOn: assembleDebug) { task pmd(type: Pmd, dependsOn: assembleDebug) {
ruleSets = [ ruleSets = [
//'java-basic', //'java-basic',
//'java-unusedcode', 'java-unusedcode',
'java-android', 'java-android',
'java-clone', 'java-clone',
'java-finalizers', 'java-finalizers',

View File

@ -91,7 +91,6 @@ public class AndroidXMLDecompress {
while (offset < binaryXml.length) { while (offset < binaryXml.length) {
int tag0 = littleEndianWord(binaryXml, offset); int tag0 = littleEndianWord(binaryXml, offset);
int nameStringIndex = littleEndianWord(binaryXml, offset + 5 * 4);
if (tag0 == startTag) { if (tag0 == startTag) {
int numbAttrs = littleEndianWord(binaryXml, offset + 7 * 4); int numbAttrs = littleEndianWord(binaryXml, offset + 7 * 4);