aboutsummaryrefslogtreecommitdiff
path: root/jgvariant-core/src/main/java/eu
diff options
context:
space:
mode:
Diffstat (limited to 'jgvariant-core/src/main/java/eu')
-rw-r--r--jgvariant-core/src/main/java/eu/mulk/jgvariant/core/Decoder.java6
-rw-r--r--jgvariant-core/src/main/java/eu/mulk/jgvariant/core/package-info.java6
2 files changed, 6 insertions, 6 deletions
diff --git a/jgvariant-core/src/main/java/eu/mulk/jgvariant/core/Decoder.java b/jgvariant-core/src/main/java/eu/mulk/jgvariant/core/Decoder.java
index 8a3741b..2cb36c6 100644
--- a/jgvariant-core/src/main/java/eu/mulk/jgvariant/core/Decoder.java
+++ b/jgvariant-core/src/main/java/eu/mulk/jgvariant/core/Decoder.java
@@ -40,7 +40,7 @@ import org.jetbrains.annotations.Nullable;
* <p>To parse a GVariant of type {@code "a(si)"}, which is an array of pairs of {@link String} and
* {@code int}, you can use the following code:
*
- * <pre>{@code
+ * {@snippet lang="java" :
* record ExampleRecord(String s, int i) {}
*
* var decoder =
@@ -50,9 +50,9 @@ import org.jetbrains.annotations.Nullable;
* Decoder.ofString(UTF_8),
* Decoder.ofInt().withByteOrder(LITTLE_ENDIAN)));
*
- * byte[] bytes = ...;
+ * byte[] bytes;
* List<ExampleRecord> example = decoder.decode(ByteBuffer.wrap(bytes));
- * }</pre>
+ * }
*
* @param <T> the type that the {@link Decoder} can decode.
*/
diff --git a/jgvariant-core/src/main/java/eu/mulk/jgvariant/core/package-info.java b/jgvariant-core/src/main/java/eu/mulk/jgvariant/core/package-info.java
index a1e0a20..e2e8143 100644
--- a/jgvariant-core/src/main/java/eu/mulk/jgvariant/core/package-info.java
+++ b/jgvariant-core/src/main/java/eu/mulk/jgvariant/core/package-info.java
@@ -14,7 +14,7 @@
* <p>To parse a GVariant of type {@code "a(si)"}, which is an array of pairs of {@link
* java.lang.String} and {@code int}, you can use the following code:
*
- * <pre>{@code
+ * {@snippet lang="java" :
* record ExampleRecord(String s, int i) {}
*
* var decoder =
@@ -24,8 +24,8 @@
* Decoder.ofString(UTF_8),
* Decoder.ofInt().withByteOrder(LITTLE_ENDIAN)));
*
- * byte[] bytes = ...;
+ * byte[] bytes;
* List<ExampleRecord> example = decoder.decode(ByteBuffer.wrap(bytes));
- * }</pre>
+ * }
*/
package eu.mulk.jgvariant.core;