aboutsummaryrefslogtreecommitdiff
path: root/jgvariant-ostree
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2024-03-02 13:50:21 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2024-03-02 13:50:21 +0100
commit6146428ef31e21f13201874ddc135bbf49ae77aa (patch)
treeb62d80f668d9069bb7c0be106ab1f952b2f6e21f /jgvariant-ostree
parentec2c34a3431835a34f88e5967a774f80c3e21d7d (diff)
Reformat.
Change-Id: I63bc83ade4d99856a0317104efbe1d4420c361bd
Diffstat (limited to 'jgvariant-ostree')
-rw-r--r--jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/DeltaOperationType.java4
-rw-r--r--jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/DeltaPartPayload.java5
2 files changed, 5 insertions, 4 deletions
diff --git a/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/DeltaOperationType.java b/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/DeltaOperationType.java
index b489cf0..2e052a2 100644
--- a/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/DeltaOperationType.java
+++ b/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/DeltaOperationType.java
@@ -44,8 +44,8 @@ enum DeltaOperationType {
case (byte) 'R' -> UNSET_READ_SOURCE;
case (byte) 'c' -> CLOSE;
case (byte) 'B' -> BSPATCH;
- default -> throw new IllegalArgumentException(
- "invalid DeltaOperation: %d".formatted(byteValue));
+ default ->
+ throw new IllegalArgumentException("invalid DeltaOperation: %d".formatted(byteValue));
};
}
}
diff --git a/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/DeltaPartPayload.java b/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/DeltaPartPayload.java
index ccd5630..fa33c69 100644
--- a/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/DeltaPartPayload.java
+++ b/jgvariant-ostree/src/main/java/eu/mulk/jgvariant/ostree/DeltaPartPayload.java
@@ -58,8 +58,9 @@ public record DeltaPartPayload(
throw new IllegalStateException(e);
}
}
- default -> throw new IllegalArgumentException(
- "unrecognized compression byte '%d'".formatted(compressionByte));
+ default ->
+ throw new IllegalArgumentException(
+ "unrecognized compression byte '%d'".formatted(compressionByte));
};
}