From a54ce406b7756855b807788c8bd6058de2801a51 Mon Sep 17 00:00:00 2001 From: Looly Date: Wed, 4 Nov 2020 00:15:41 +0800 Subject: [PATCH] add sh --- bin/fast_install.sh | 3 +++ hutool-core/src/main/java/cn/hutool/core/date/DateTime.java | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 bin/fast_install.sh diff --git a/bin/fast_install.sh b/bin/fast_install.sh new file mode 100644 index 000000000..b4e9072e9 --- /dev/null +++ b/bin/fast_install.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +exec mvn -T 1C clean source:jar javadoc:javadoc install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dmaven.compile.fork=true diff --git a/hutool-core/src/main/java/cn/hutool/core/date/DateTime.java b/hutool-core/src/main/java/cn/hutool/core/date/DateTime.java index 69d722f87..afa68ff24 100644 --- a/hutool-core/src/main/java/cn/hutool/core/date/DateTime.java +++ b/hutool-core/src/main/java/cn/hutool/core/date/DateTime.java @@ -648,6 +648,10 @@ public class DateTime extends Date { return new Date(this.getTime()); } + public Date writeReplace(){ + return toJdkDate(); + } + /** * 转为{@link Timestamp} *