From 1681f3934ffbed275ad12506432c5896193b9236 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Tue, 14 Dec 2021 14:42:53 +0100 Subject: [PATCH] Fix method name getCommentHeader --- .../src/main/java/org/pgpainless/util/ArmorUtils.java | 2 +- .../src/test/java/org/pgpainless/util/ArmorUtilsTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/util/ArmorUtils.java b/pgpainless-core/src/main/java/org/pgpainless/util/ArmorUtils.java index 41aac842..38527997 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/util/ArmorUtils.java +++ b/pgpainless-core/src/main/java/org/pgpainless/util/ArmorUtils.java @@ -157,7 +157,7 @@ public final class ArmorUtils { return armor; } - public static List getCommendHeaderValues(ArmoredInputStream armor) { + public static List getCommentHeaderValues(ArmoredInputStream armor) { return getArmorHeaderValues(armor, HEADER_COMMENT); } diff --git a/pgpainless-core/src/test/java/org/pgpainless/util/ArmorUtilsTest.java b/pgpainless-core/src/test/java/org/pgpainless/util/ArmorUtilsTest.java index b9610892..9adb8d96 100644 --- a/pgpainless-core/src/test/java/org/pgpainless/util/ArmorUtilsTest.java +++ b/pgpainless-core/src/test/java/org/pgpainless/util/ArmorUtilsTest.java @@ -70,7 +70,7 @@ public class ArmorUtilsTest { assertEquals(HashAlgorithm.SHA512, hashes.get(0)); // Comment - List commentHeader = ArmorUtils.getCommendHeaderValues(armorIn); + List commentHeader = ArmorUtils.getCommentHeaderValues(armorIn); assertEquals(2, commentHeader.size()); assertEquals("This is a comment", commentHeader.get(0)); assertEquals("This is another comment", commentHeader.get(1));