mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-11 19:29:25 +01:00
Lint: Inner class may be static
This commit is contained in:
parent
ad2ea0b807
commit
0274cd6beb
@ -371,7 +371,7 @@ public class InfoListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolde
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public class HFHolder extends RecyclerView.ViewHolder {
|
public static class HFHolder extends RecyclerView.ViewHolder {
|
||||||
public View view;
|
public View view;
|
||||||
|
|
||||||
HFHolder(final View v) {
|
HFHolder(final View v) {
|
||||||
|
@ -215,7 +215,7 @@ public class PlayQueueAdapter extends RecyclerView.Adapter<RecyclerView.ViewHold
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class HFHolder extends RecyclerView.ViewHolder {
|
public static class HFHolder extends RecyclerView.ViewHolder {
|
||||||
public View view;
|
public View view;
|
||||||
|
|
||||||
public HFHolder(final View v) {
|
public HFHolder(final View v) {
|
||||||
|
@ -743,24 +743,24 @@ public class Mp4DashReader {
|
|||||||
return readFullBox(b);
|
return readFullBox(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
class Box {
|
static class Box {
|
||||||
int type;
|
int type;
|
||||||
long offset;
|
long offset;
|
||||||
long size;
|
long size;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Moof {
|
public static class Moof {
|
||||||
int mfhdSequenceNumber;
|
int mfhdSequenceNumber;
|
||||||
public Traf traf;
|
public Traf traf;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Traf {
|
public static class Traf {
|
||||||
public Tfhd tfhd;
|
public Tfhd tfhd;
|
||||||
long tfdt;
|
long tfdt;
|
||||||
public Trun trun;
|
public Trun trun;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Tfhd {
|
public static class Tfhd {
|
||||||
int bFlags;
|
int bFlags;
|
||||||
public int trackId;
|
public int trackId;
|
||||||
int defaultSampleDuration;
|
int defaultSampleDuration;
|
||||||
@ -768,7 +768,7 @@ public class Mp4DashReader {
|
|||||||
int defaultSampleFlags;
|
int defaultSampleFlags;
|
||||||
}
|
}
|
||||||
|
|
||||||
class TrunEntry {
|
static class TrunEntry {
|
||||||
int sampleDuration;
|
int sampleDuration;
|
||||||
int sampleSize;
|
int sampleSize;
|
||||||
int sampleFlags;
|
int sampleFlags;
|
||||||
@ -779,7 +779,7 @@ public class Mp4DashReader {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Trun {
|
public static class Trun {
|
||||||
public int chunkDuration;
|
public int chunkDuration;
|
||||||
public int chunkSize;
|
public int chunkSize;
|
||||||
|
|
||||||
@ -837,7 +837,7 @@ public class Mp4DashReader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Tkhd {
|
public static class Tkhd {
|
||||||
int trackId;
|
int trackId;
|
||||||
long duration;
|
long duration;
|
||||||
short bVolume;
|
short bVolume;
|
||||||
@ -848,25 +848,25 @@ public class Mp4DashReader {
|
|||||||
short bAlternateGroup;
|
short bAlternateGroup;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Trak {
|
public static class Trak {
|
||||||
public Tkhd tkhd;
|
public Tkhd tkhd;
|
||||||
public Elst edstElst;
|
public Elst edstElst;
|
||||||
public Mdia mdia;
|
public Mdia mdia;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class Mvhd {
|
static class Mvhd {
|
||||||
long timeScale;
|
long timeScale;
|
||||||
long nextTrackId;
|
long nextTrackId;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Moov {
|
static class Moov {
|
||||||
Mvhd mvhd;
|
Mvhd mvhd;
|
||||||
Trak[] trak;
|
Trak[] trak;
|
||||||
Trex[] mvexTrex;
|
Trex[] mvexTrex;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Trex {
|
public static class Trex {
|
||||||
private int trackId;
|
private int trackId;
|
||||||
int defaultSampleDescriptionIndex;
|
int defaultSampleDescriptionIndex;
|
||||||
int defaultSampleDuration;
|
int defaultSampleDuration;
|
||||||
@ -874,37 +874,37 @@ public class Mp4DashReader {
|
|||||||
int defaultSampleFlags;
|
int defaultSampleFlags;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Elst {
|
public static class Elst {
|
||||||
public long mediaTime;
|
public long mediaTime;
|
||||||
public int bMediaRate;
|
public int bMediaRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Mdia {
|
public static class Mdia {
|
||||||
public int mdhdTimeScale;
|
public int mdhdTimeScale;
|
||||||
public byte[] mdhd;
|
public byte[] mdhd;
|
||||||
public Hdlr hdlr;
|
public Hdlr hdlr;
|
||||||
public Minf minf;
|
public Minf minf;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Hdlr {
|
public static class Hdlr {
|
||||||
public int type;
|
public int type;
|
||||||
public int subType;
|
public int subType;
|
||||||
public byte[] bReserved;
|
public byte[] bReserved;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Minf {
|
public static class Minf {
|
||||||
public byte[] dinf;
|
public byte[] dinf;
|
||||||
public byte[] stblStsd;
|
public byte[] stblStsd;
|
||||||
public byte[] mhd;
|
public byte[] mhd;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Mp4Track {
|
public static class Mp4Track {
|
||||||
public TrackKind kind;
|
public TrackKind kind;
|
||||||
public Trak trak;
|
public Trak trak;
|
||||||
public Trex trex;
|
public Trex trex;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Mp4DashChunk {
|
public static class Mp4DashChunk {
|
||||||
public InputStream data;
|
public InputStream data;
|
||||||
public Moof moof;
|
public Moof moof;
|
||||||
private int i = 0;
|
private int i = 0;
|
||||||
@ -936,7 +936,7 @@ public class Mp4DashReader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Mp4DashSample {
|
public static class Mp4DashSample {
|
||||||
public TrunEntry info;
|
public TrunEntry info;
|
||||||
public byte[] data;
|
public byte[] data;
|
||||||
}
|
}
|
||||||
|
@ -897,7 +897,7 @@ public class Mp4FromDashWriter {
|
|||||||
return buffer.array();
|
return buffer.array();
|
||||||
}
|
}
|
||||||
|
|
||||||
class TablesInfo {
|
static class TablesInfo {
|
||||||
int stts;
|
int stts;
|
||||||
int stsc;
|
int stsc;
|
||||||
int[] stscBEntries;
|
int[] stscBEntries;
|
||||||
|
@ -397,19 +397,19 @@ public class WebMReader {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Element {
|
static class Element {
|
||||||
int type;
|
int type;
|
||||||
long offset;
|
long offset;
|
||||||
long contentSize;
|
long contentSize;
|
||||||
long size;
|
long size;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Info {
|
public static class Info {
|
||||||
public long timecodeScale;
|
public long timecodeScale;
|
||||||
public long duration;
|
public long duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class WebMTrack {
|
public static class WebMTrack {
|
||||||
public long trackNumber;
|
public long trackNumber;
|
||||||
protected int trackType;
|
protected int trackType;
|
||||||
public String codecId;
|
public String codecId;
|
||||||
@ -454,7 +454,7 @@ public class WebMReader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SimpleBlock {
|
public static class SimpleBlock {
|
||||||
public InputStream data;
|
public InputStream data;
|
||||||
public boolean createdFromBlock;
|
public boolean createdFromBlock;
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ public final class FocusAwareSeekBar extends AppCompatSeekBar {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private final class NestedListener implements OnSeekBarChangeListener {
|
private static final class NestedListener implements OnSeekBarChangeListener {
|
||||||
private final OnSeekBarChangeListener delegate;
|
private final OnSeekBarChangeListener delegate;
|
||||||
|
|
||||||
boolean isSeeking;
|
boolean isSeeking;
|
||||||
|
@ -686,7 +686,7 @@ public class DownloadManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class MissionItem {
|
public static class MissionItem {
|
||||||
public int special;
|
public int special;
|
||||||
public Mission mission;
|
public Mission mission;
|
||||||
|
|
||||||
|
@ -976,7 +976,7 @@ public class MissionAdapter extends Adapter<ViewHolder> implements Handler.Callb
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ViewHolderHeader extends RecyclerView.ViewHolder {
|
static class ViewHolderHeader extends RecyclerView.ViewHolder {
|
||||||
TextView header;
|
TextView header;
|
||||||
|
|
||||||
ViewHolderHeader(View view) {
|
ViewHolderHeader(View view) {
|
||||||
|
Loading…
Reference in New Issue
Block a user