Drop elses after returns

This commit is contained in:
Daniel Martí 2016-04-17 15:11:46 +01:00
parent c560463887
commit df39b0fe40
5 changed files with 6 additions and 11 deletions

View File

@ -113,10 +113,9 @@ public class AndroidXMLDecompress {
attributes.put(attributeName, attributeValue);
}
return attributes;
} else {
// we only need the first <manifest> start tag
break;
}
// we only need the first <manifest> start tag
break;
}
return new HashMap<String, Object>(0);
}

View File

@ -9,9 +9,8 @@ public class AvailableAppListAdapter extends AppListAdapter {
public static AvailableAppListAdapter create(Context context, Cursor cursor, int flags) {
if (Build.VERSION.SDK_INT >= 11) {
return new AvailableAppListAdapter(context, cursor, flags);
} else {
return new AvailableAppListAdapter(context, cursor);
}
return new AvailableAppListAdapter(context, cursor);
}
private AvailableAppListAdapter(Context context, Cursor c) {

View File

@ -9,9 +9,8 @@ public class CanUpdateAppListAdapter extends AppListAdapter {
public static CanUpdateAppListAdapter create(Context context, Cursor cursor, int flags) {
if (Build.VERSION.SDK_INT >= 11) {
return new CanUpdateAppListAdapter(context, cursor, flags);
} else {
return new CanUpdateAppListAdapter(context, cursor);
}
return new CanUpdateAppListAdapter(context, cursor);
}
private CanUpdateAppListAdapter(Context context, Cursor c) {

View File

@ -9,9 +9,8 @@ public class InstalledAppListAdapter extends AppListAdapter {
public static InstalledAppListAdapter create(Context context, Cursor cursor, int flags) {
if (Build.VERSION.SDK_INT >= 11) {
return new InstalledAppListAdapter(context, cursor, flags);
} else {
return new InstalledAppListAdapter(context, cursor);
}
return new InstalledAppListAdapter(context, cursor);
}
private InstalledAppListAdapter(Context context, Cursor c) {

View File

@ -26,9 +26,8 @@ public class RepoAdapter extends CursorAdapter {
public static RepoAdapter create(Context context, Cursor cursor, int flags) {
if (Build.VERSION.SDK_INT >= 11) {
return new RepoAdapter(context, cursor, flags);
} else {
return new RepoAdapter(context, cursor);
}
return new RepoAdapter(context, cursor);
}
private RepoAdapter(Context context, Cursor c, int flags) {