mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-26 21:16:48 +00:00
Fixed code style
This commit is contained in:
@@ -20,8 +20,9 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
* Special MemoryInputStream that is not a MemoryInputStream in fact.
|
||||
* Input stream to handle some edge cases
|
||||
* Special MemoryInputStream that is not a MemoryInputStream in fact. Input
|
||||
* stream to handle some edge cases
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class FakeMemoryInputStream extends MemoryInputStream {
|
||||
@@ -29,12 +30,12 @@ public class FakeMemoryInputStream extends MemoryInputStream {
|
||||
private long pos;
|
||||
|
||||
private final int maxLength;
|
||||
|
||||
|
||||
private final InputStream is;
|
||||
|
||||
|
||||
public FakeMemoryInputStream(InputStream is) throws IOException {
|
||||
super(new byte[0]);
|
||||
this.maxLength = Integer.MAX_VALUE;
|
||||
this.maxLength = Integer.MAX_VALUE;
|
||||
this.is = is;
|
||||
}
|
||||
|
||||
@@ -63,7 +64,7 @@ public class FakeMemoryInputStream extends MemoryInputStream {
|
||||
|
||||
@Override
|
||||
public int read() throws IOException {
|
||||
if (pos < maxLength) {
|
||||
if (pos < maxLength) {
|
||||
pos++;
|
||||
return is.read();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user