标签:style blog http color os for art ar
1. 连续for循环
反编译代码:
1 private void removeHideLines() 2 { 3 int i = 0; 4 if (i >= this.lines.size()) {} 5 for (int j = 0;; j++) 6 { 7 if (j >= this.recordLines.size()) 8 { 9 return; 10 if (((MusicTrackLine)this.lines.get(i)).getX() + ((MusicTrackLine)this.lines.get(i)).getLength() <= 0) { 11 this.lines.remove(i); 12 } 13 i++; 14 break; 15 } 16 if (((MusicTrackLine)this.recordLines.get(j)).getX() + ((MusicTrackLine)this.recordLines.get(j)).getLength() <= 0) { 17 this.recordLines.remove(j); 18 } 19 } 20 }
实际代码:
1 private void removeHideLines() { 2 for (int i = 0; i < lines.size(); i++) { 3 if (((MusicTrackLine) this.lines.get(i)).getX() + ((MusicTrackLine) this.lines.get(i)).getLength() <= 0) { 4 this.lines.remove(i); 5 } 6 } 7 for (int j = 0; j < recordLines.size(); j++) { 8 if (((MusicTrackLine) this.recordLines.get(j)).getX() 9 + ((MusicTrackLine) this.recordLines.get(j)).getLength() <= 0) { 10 this.recordLines.remove(j); 11 } 12 } 13 }
APK反编译jd-gui代码分析(草稿记录),布布扣,bubuko.com
标签:style blog http color os for art ar
原文地址:http://www.cnblogs.com/yuanmingming/p/3890350.html