fix(serialize): support different exception types in copyTo
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
f03763f86d
commit
7335bb63c8
|
@ -70,7 +70,7 @@ public abstract class SerializeReader<TEx extends Throwable, T extends Serialize
|
|||
* @param writer the writer to copy to
|
||||
* @throws TEx if an error occurs
|
||||
*/
|
||||
public void copyTo(SerializeWriter<TEx, ?> writer) throws TEx {
|
||||
public <TEx2 extends Throwable> void copyTo(SerializeWriter<TEx2, ?> writer) throws TEx, TEx2 {
|
||||
switch (peek()) {
|
||||
case BEGIN_ARRAY -> {
|
||||
this.beginArray();
|
||||
|
|
Loading…
Reference in New Issue