From 941a41b1bebec3c91f8833e0332d3e3c852ece06 Mon Sep 17 00:00:00 2001 From: fh-ms Date: Thu, 21 Nov 2024 12:47:50 +0100 Subject: [PATCH] Correct typo in method name --- .../java/org/eclipse/serializer/Serializer.java | 13 +++++++++++-- .../org/eclipse/serializer/TypedSerializer.java | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/serializer/src/main/java/org/eclipse/serializer/Serializer.java b/serializer/src/main/java/org/eclipse/serializer/Serializer.java index 00d45c2b..e2b521ba 100644 --- a/serializer/src/main/java/org/eclipse/serializer/Serializer.java +++ b/serializer/src/main/java/org/eclipse/serializer/Serializer.java @@ -81,7 +81,16 @@ public interface Serializer extends AutoCloseable * * @return type dictionary as String. */ - public String exportTypeDictionay(); + public String exportTypeDictionary(); + + /** + * @deprecated typo, replaced by {@link #exportTypeDictionary()}, will be removed in a future release + */ + @Deprecated(forRemoval = true) + public default String exportTypeDictionay() + { + return this.exportTypeDictionary(); + } public static Serializer Bytes() { @@ -239,7 +248,7 @@ public synchronized void close() } @Override - public String exportTypeDictionay() + public String exportTypeDictionary() { return this.foundation.getTypeDictionaryAssembler() .assemble(this.persistenceManager.typeDictionary()); diff --git a/serializer/src/main/java/org/eclipse/serializer/TypedSerializer.java b/serializer/src/main/java/org/eclipse/serializer/TypedSerializer.java index 8ecc2217..71c8f624 100644 --- a/serializer/src/main/java/org/eclipse/serializer/TypedSerializer.java +++ b/serializer/src/main/java/org/eclipse/serializer/TypedSerializer.java @@ -352,7 +352,7 @@ public synchronized void close() } @Override - public String exportTypeDictionay() + public String exportTypeDictionary() { return this.foundation.getTypeDictionaryAssembler() .assemble(this.persistenceManager.typeDictionary());