Changes suggested by Intellij in the category "Performance".

Updated.
This commit is contained in:
Koen De Groote
2019-10-22 01:58:08 +02:00
parent 42e17f2063
commit 8ed5f06151
5 changed files with 11 additions and 9 deletions
@@ -54,6 +54,7 @@ import java.io.File;
import java.io.IOException;
import java.nio.ByteOrder;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
/**
@@ -196,7 +197,7 @@ public final class BMPImageReader extends ImageReaderBase {
checkBounds(pImageIndex);
// TODO: Better implementation, include INT_RGB types for 3BYTE_BGR and 4BYTE_ABGR for INT_ARGB
return Arrays.asList(getRawImageType(pImageIndex)).iterator();
return Collections.singletonList(getRawImageType(pImageIndex)).iterator();
}
@Override