Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-25 15:50:19 +01:00
Properly rethrow DataFormatException in Java 11+ compressor
Dieser Commit ist enthalten in:
Ursprung
b18f65fe0a
Commit
20559e059d
@ -80,6 +80,9 @@ public class Java11VelocityCompressor implements VelocityCompressor {
|
|||||||
|
|
||||||
inflater.reset();
|
inflater.reset();
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
|
if (e instanceof DataFormatException) {
|
||||||
|
throw (DataFormatException) e;
|
||||||
|
}
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -111,6 +114,9 @@ public class Java11VelocityCompressor implements VelocityCompressor {
|
|||||||
|
|
||||||
deflater.reset();
|
deflater.reset();
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
|
if (e instanceof DataFormatException) {
|
||||||
|
throw (DataFormatException) e;
|
||||||
|
}
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren