Code cleanup

This commit is contained in:
Andrew Rabert 2019-08-24 23:03:36 -04:00
parent 5144f82051
commit a24faf6fae
5 changed files with 7 additions and 7 deletions

View File

@ -144,7 +144,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
}
@Override
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
switch (requestCode) {
case PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE: {
// If request is cancelled, the result arrays are empty.

View File

@ -793,9 +793,9 @@ public final class Util {
m = t.length();
}
int p[] = new int[n + 1];
int d[] = new int[n + 1];
int _d[];
int[] p = new int[n + 1];
int[] d = new int[n + 1];
int[] _d;
int i;
int j;

View File

@ -31,7 +31,7 @@ class FlacFile extends Common {
public HashMap getTags(RandomAccessFile s) throws IOException {
int xoff = 4; // skip file magic
int retry = 64;
int r[];
int[] r;
HashMap tags = new HashMap();
for (; retry > 0; retry--) {

View File

@ -106,7 +106,7 @@ class ID3v2File extends Common {
rv[1] = getDecodedString(v);
} else if (k.equals("TXXX")) {
/* A freestyle field, ieks! */
String txData[] = getDecodedString(v).split(Character.toString('\0'), 2);
String[] txData = getDecodedString(v).split(Character.toString('\0'), 2);
/* Check if we got replaygain info in key\0value style */
if (txData.length == 2) {
if (txData[0].matches("^(?i)REPLAYGAIN_(ALBUM|TRACK)_GAIN$")) {

View File

@ -37,7 +37,7 @@ class OggFile extends Common {
HashMap tags = new HashMap();
for (; retry > 0; retry--) {
long res[] = parse_ogg_page(s, offset);
long[] res = parse_ogg_page(s, offset);
if (res[2] == OGG_TYPE_COMMENT) {
tags = parse_ogg_vorbis_comment(s, offset + res[0], res[1]);
break;