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 {
byte[] b = new byte[8];
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[3] & 0xff) << 24) + ((long) (b[2] & 0xff) << 16) +
((long) (b[1] & 0xff) << 8) + ((long) b[0] & 0xff);
return result;
}
private int readLittleEndianInt(RandomAccessFile stream) throws IOException {

View file

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