From 67ebd5215dfd13177829d1ab9752c53febb248e7 Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Sun, 24 Jun 2018 20:51:12 +0000 Subject: [PATCH] Renamed function in QrSegmentAdvanced to makeKanji(), for consistency with other static factories. --- java/io/nayuki/qrcodegen/QrSegmentAdvanced.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/io/nayuki/qrcodegen/QrSegmentAdvanced.java b/java/io/nayuki/qrcodegen/QrSegmentAdvanced.java index 34847e4..a57a006 100644 --- a/java/io/nayuki/qrcodegen/QrSegmentAdvanced.java +++ b/java/io/nayuki/qrcodegen/QrSegmentAdvanced.java @@ -237,7 +237,7 @@ public final class QrSegmentAdvanced { * @throws IllegalArgumentException if the string contains non-kanji-mode characters * @see #isEncodableAsKanji(String) */ - public static QrSegment makeKanjiSegment(String text) { + public static QrSegment makeKanji(String text) { Objects.requireNonNull(text); BitBuffer bb = new BitBuffer(); for (int i = 0; i < text.length(); i++) { @@ -258,7 +258,7 @@ public final class QrSegmentAdvanced { * @param text the string to test for encodability * @return {@code true} if and only if the string can be encoded in kanji mode * @throws NullPointerException if the string is {@code null} - * @see #makeKanjiSegment(String) + * @see #makeKanji(String) */ public static boolean isEncodableAsKanji(String text) { Objects.requireNonNull(text);