From 1b0cf2bd421270ca3a8b2d45b7894ce68fb20bc3 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sat, 12 Oct 2024 02:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=20YearQuarter=20=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E6=A0=BC=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/xyz/zhouxy/plusone/commons/time/YearQuarter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/xyz/zhouxy/plusone/commons/time/YearQuarter.java b/src/main/java/xyz/zhouxy/plusone/commons/time/YearQuarter.java index a4ad022..c4c2a8d 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/time/YearQuarter.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/time/YearQuarter.java @@ -237,12 +237,12 @@ public final class YearQuarter implements Comparable, Serializable // toString /** - * 返回 {@link YearQuarter} 的字符串表示形式,如 "Q3 2024" + * 返回 {@link YearQuarter} 的字符串表示形式,如 "2024 Q3" * * @return {@link YearQuarter} 的字符串表示形式 */ @Override public String toString() { - return this.quarter.name() + " " + this.year; + return this.year + " " + this.quarter.name(); } }