0

findbugs fix

This commit is contained in:
2018-03-07 02:02:47 +03:00
parent 568beb085c
commit 58f913ad6e

View File

@@ -46,7 +46,7 @@ public class BaseQ2FileSystem implements FileSystem {
private BaseQ2FileSystem() {} private BaseQ2FileSystem() {}
private class packfile_t { private static class packfile_t {
static final int SIZE = 64; static final int SIZE = 64;
static final int NAME_SIZE = 56; static final int NAME_SIZE = 56;
String name; // char name[56] String name; // char name[56]
@@ -56,7 +56,7 @@ public class BaseQ2FileSystem implements FileSystem {
} }
} }
private class pack_t { private static class pack_t {
String filename; String filename;
RandomAccessFile handle; RandomAccessFile handle;
ByteBuffer backbuffer; ByteBuffer backbuffer;
@@ -64,19 +64,19 @@ public class BaseQ2FileSystem implements FileSystem {
Hashtable<String, packfile_t> files; // with packfile_t entries Hashtable<String, packfile_t> files; // with packfile_t entries
} }
private class searchpath_t { private static class searchpath_t {
String filename; String filename;
pack_t pack; // only one of filename or pack will be used pack_t pack; // only one of filename or pack will be used
searchpath_t next; searchpath_t next;
} }
private class filelink_t { private static class filelink_t {
String from; String from;
int fromlength; int fromlength;
String to; String to;
} }
private class dpackheader_t { private static class dpackheader_t {
int ident; // IDPAKHEADER int ident; // IDPAKHEADER
int dirofs; int dirofs;
int dirlen; int dirlen;
@@ -438,7 +438,6 @@ public class BaseQ2FileSystem implements FileSystem {
fs_searchpaths.pack = null; fs_searchpaths.pack = null;
} }
next = fs_searchpaths.next; next = fs_searchpaths.next;
fs_searchpaths = null;
fs_searchpaths = next; fs_searchpaths = next;
} }