Inline variables

This commit is contained in:
Boris Timofeev 2017-01-19 18:03:48 +03:00
parent c7754a562f
commit 0c6d0c973a
2 changed files with 4 additions and 8 deletions

View file

@ -223,11 +223,10 @@ public class PPF extends Patch {
private long readLittleEndianLong(RandomAccessFile stream) throws IOException { private long readLittleEndianLong(RandomAccessFile stream) throws IOException {
byte[] b = new byte[8]; byte[] b = new byte[8];
stream.read(b); stream.read(b);
long result = ((long) (b[7] & 0xff) << 56) + ((long) (b[6] & 0xff) << 48) + return ((long) (b[7] & 0xff) << 56) + ((long) (b[6] & 0xff) << 48) +
((long) (b[5] & 0xff) << 40) + ((long) (b[4] & 0xff) << 32) + ((long) (b[5] & 0xff) << 40) + ((long) (b[4] & 0xff) << 32) +
((long) (b[3] & 0xff) << 24) + ((long) (b[2] & 0xff) << 16) + ((long) (b[3] & 0xff) << 24) + ((long) (b[2] & 0xff) << 16) +
((long) (b[1] & 0xff) << 8) + ((long) b[0] & 0xff); ((long) (b[1] & 0xff) << 8) + ((long) b[0] & 0xff);
return result;
} }
private int readLittleEndianInt(RandomAccessFile stream) throws IOException { private int readLittleEndianInt(RandomAccessFile stream) throws IOException {

View file

@ -39,14 +39,11 @@ public class HelpPagerAdapter extends FragmentStatePagerAdapter {
public Fragment getItem(int position) { public Fragment getItem(int position) {
switch (position) { switch (position) {
case 0: case 0:
FaqFragment tab1 = new FaqFragment(); return new FaqFragment();
return tab1;
case 1: case 1:
ChangelogFragment tab2 = new ChangelogFragment(); return new ChangelogFragment();
return tab2;
case 2: case 2:
AboutFragment tab3 = new AboutFragment(); return new AboutFragment();
return tab3;
default: default:
return null; return null;
} }