Merge pull request #2542 from gaul/static-inner-class

Make some inner classes static
This commit is contained in:
Martin Fietz 2018-01-21 10:03:12 +01:00 committed by GitHub
commit 5abaa77551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -379,7 +379,7 @@ public class FeedInfoActivity extends AppCompatActivity {
} }
} }
private class ApplyToEpisodesDialog extends ConfirmationDialog { private static class ApplyToEpisodesDialog extends ConfirmationDialog {
private final Feed feed; private final Feed feed;
private final boolean autoDownload; private final boolean autoDownload;

View File

@ -162,7 +162,7 @@ public class ItunesAdapter extends ArrayAdapter<ItunesAdapter.Podcast> {
/** /**
* View holder object for the GridView * View holder object for the GridView
*/ */
class PodcastViewHolder { static class PodcastViewHolder {
/** /**
* ImageView holding the Podcast image * ImageView holding the Podcast image

View File

@ -78,7 +78,7 @@ public class DownloadsFragment extends Fragment {
viewPager.setCurrentItem(lastPosition); viewPager.setCurrentItem(lastPosition);
} }
public class DownloadsPagerAdapter extends FragmentPagerAdapter { public static class DownloadsPagerAdapter extends FragmentPagerAdapter {
Resources resources; Resources resources;

View File

@ -950,7 +950,7 @@ public class DownloadService extends Service {
* <p/> * <p/>
* Currently, this handler only handles FeedMedia objects, because Feeds and FeedImages are deleted if the download fails. * Currently, this handler only handles FeedMedia objects, because Feeds and FeedImages are deleted if the download fails.
*/ */
private class FailedDownloadHandler implements Runnable { private static class FailedDownloadHandler implements Runnable {
private DownloadRequest request; private DownloadRequest request;
private DownloadStatus status; private DownloadStatus status;

View File

@ -314,7 +314,7 @@ public class HttpDownloader extends Downloader {
} }
} }
private class BasicAuthorizationInterceptor implements Interceptor { private static class BasicAuthorizationInterceptor implements Interceptor {
private DownloadRequest downloadRequest; private DownloadRequest downloadRequest;

View File

@ -40,7 +40,7 @@ public class HtmlToPlainText {
} }
// the formatting rules, implemented in a breadth-first DOM traverse // the formatting rules, implemented in a breadth-first DOM traverse
private class FormattingVisitor implements NodeVisitor { private static class FormattingVisitor implements NodeVisitor {
private StringBuilder accum = new StringBuilder(); // holds the accumulated text private StringBuilder accum = new StringBuilder(); // holds the accumulated text