@@ -271,7 +271,7 @@ public void loadStaticProps() {
271
271
}
272
272
273
273
// StaticPropLeafLump_t
274
- int propleaves = in .readInt ();
274
+ final int propleaves = in .readInt ();
275
275
276
276
L .log (Level .FINE , "Static prop leaves: {0}" , propleaves );
277
277
@@ -359,7 +359,6 @@ public void loadStaticProps() {
359
359
360
360
// get structure class for the static prop lump version if it's not
361
361
// a special case
362
- int numFillBytes = 0 ;
363
362
if (structClass == null ) {
364
363
try {
365
364
String className = DStaticProp .class .getName ();
@@ -380,8 +379,9 @@ public void loadStaticProps() {
380
379
}
381
380
}
382
381
383
- // fall back to a very basic version that should hopefully work in
384
- // all situations
382
+ // if the correct class is still unknown at this point, fall back to
383
+ // a very basic version that should hopefully work in all situations
384
+ int numFillBytes = 0 ;
385
385
if (structClass == null ) {
386
386
L .log (Level .WARNING , "Falling back to static prop v4" );
387
387
@@ -791,14 +791,14 @@ public void loadPrimVerts() {
791
791
private <E extends DStruct > List <E > loadLump (LumpType lumpType , Class <E > struct ) {
792
792
// don't try to read lumps that aren't supported
793
793
if (!bspFile .canReadLump (lumpType )) {
794
- return Collections .EMPTY_LIST ;
794
+ return Collections .emptyList () ;
795
795
}
796
796
797
797
Lump lump = getLump (lumpType );
798
798
799
799
// don't try to read empty lumps
800
800
if (lump .getLength () == 0 ) {
801
- return Collections .EMPTY_LIST ;
801
+ return Collections .emptyList () ;
802
802
}
803
803
804
804
L .log (Level .FINE , "Loading {0}" , lumpType );
0 commit comments