diff --git a/hutool-ai/src/main/resources/META-INF/services/cn.hutool.v7.ai.core.AIConfig b/hutool-ai/src/main/resources/META-INF/services/cn.hutool.v7.ai.core.AIConfig index f9a398991..9b1617efb 100644 --- a/hutool-ai/src/main/resources/META-INF/services/cn.hutool.v7.ai.core.AIConfig +++ b/hutool-ai/src/main/resources/META-INF/services/cn.hutool.v7.ai.core.AIConfig @@ -1,3 +1,19 @@ +# +# Copyright (c) 2025 Hutool Team and hutool.cn +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + cn.hutool.v7.ai.model.hutool.HutoolConfig cn.hutool.v7.ai.model.deepseek.DeepSeekConfig cn.hutool.v7.ai.model.openai.OpenaiConfig diff --git a/hutool-ai/src/main/resources/META-INF/services/cn.hutool.v7.ai.core.AIServiceProvider b/hutool-ai/src/main/resources/META-INF/services/cn.hutool.v7.ai.core.AIServiceProvider index a9df885fe..7514ac7b9 100644 --- a/hutool-ai/src/main/resources/META-INF/services/cn.hutool.v7.ai.core.AIServiceProvider +++ b/hutool-ai/src/main/resources/META-INF/services/cn.hutool.v7.ai.core.AIServiceProvider @@ -1,3 +1,19 @@ +# +# Copyright (c) 2025 Hutool Team and hutool.cn +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + cn.hutool.v7.ai.model.hutool.HutoolProvider cn.hutool.v7.ai.model.deepseek.DeepSeekProvider cn.hutool.v7.ai.model.openai.OpenaiProvider diff --git a/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingProcessor.java b/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingProcessor.java index 1b825b3f1..476049c74 100644 --- a/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingProcessor.java +++ b/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingProcessor.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.core.data.masking; import cn.hutool.v7.core.text.StrUtil; diff --git a/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingRule.java b/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingRule.java index 31939d3d4..d0d0b01cf 100644 --- a/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingRule.java +++ b/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingRule.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.core.data.masking; import java.util.HashSet; diff --git a/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingUtil.java b/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingUtil.java index 92fae8624..1e5d2915e 100644 --- a/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingUtil.java +++ b/hutool-core/src/main/java/cn/hutool/v7/core/data/masking/RichTextMaskingUtil.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.core.data.masking; /** diff --git a/hutool-core/src/main/java/cn/hutool/v7/core/io/file/FileReader.java b/hutool-core/src/main/java/cn/hutool/v7/core/io/file/FileReader.java index e64e851db..2d2341cf5 100644 --- a/hutool-core/src/main/java/cn/hutool/v7/core/io/file/FileReader.java +++ b/hutool-core/src/main/java/cn/hutool/v7/core/io/file/FileReader.java @@ -37,6 +37,7 @@ import java.util.function.Predicate; * @author Looly */ public class FileReader extends FileWrapper { + @Serial private static final long serialVersionUID = 1L; /** diff --git a/hutool-core/src/main/java/cn/hutool/v7/core/io/file/FileWrapper.java b/hutool-core/src/main/java/cn/hutool/v7/core/io/file/FileWrapper.java index feff9bdb0..81f27719e 100644 --- a/hutool-core/src/main/java/cn/hutool/v7/core/io/file/FileWrapper.java +++ b/hutool-core/src/main/java/cn/hutool/v7/core/io/file/FileWrapper.java @@ -16,8 +16,8 @@ package cn.hutool.v7.core.io.file; -import cn.hutool.v7.core.lang.wrapper.Wrapper; import cn.hutool.v7.core.lang.Assert; +import cn.hutool.v7.core.lang.wrapper.Wrapper; import cn.hutool.v7.core.util.CharsetUtil; import cn.hutool.v7.core.util.ObjUtil; @@ -25,7 +25,6 @@ import java.io.File; import java.io.Serial; import java.io.Serializable; import java.nio.charset.Charset; -import java.nio.charset.StandardCharsets; /** * 文件包装器,扩展文件对象 @@ -48,7 +47,7 @@ public class FileWrapper implements Wrapper, Serializable { /** * 默认编码:UTF-8 */ - public static final Charset DEFAULT_CHARSET = StandardCharsets.UTF_8; + public static final Charset DEFAULT_CHARSET = CharsetUtil.UTF_8; // ------------------------------------------------------- Constructor start diff --git a/hutool-core/src/main/java/cn/hutool/v7/core/io/file/VirtualFile.java b/hutool-core/src/main/java/cn/hutool/v7/core/io/file/VirtualFile.java index 938e06a8a..5e6d9aa37 100644 --- a/hutool-core/src/main/java/cn/hutool/v7/core/io/file/VirtualFile.java +++ b/hutool-core/src/main/java/cn/hutool/v7/core/io/file/VirtualFile.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2013-2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.core.io.file; import cn.hutool.v7.core.io.resource.Resource; diff --git a/hutool-core/src/main/java/cn/hutool/v7/core/io/file/VirtualPath.java b/hutool-core/src/main/java/cn/hutool/v7/core/io/file/VirtualPath.java index 1e5ca099b..fe9986a29 100644 --- a/hutool-core/src/main/java/cn/hutool/v7/core/io/file/VirtualPath.java +++ b/hutool-core/src/main/java/cn/hutool/v7/core/io/file/VirtualPath.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2013-2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.core.io.file; import cn.hutool.v7.core.io.resource.Resource; diff --git a/hutool-core/src/main/java/cn/hutool/v7/core/thread/RecyclableBatchThreadPoolExecutor.java b/hutool-core/src/main/java/cn/hutool/v7/core/thread/RecyclableBatchThreadPoolExecutor.java index 2cb94d288..a7320cbd8 100644 --- a/hutool-core/src/main/java/cn/hutool/v7/core/thread/RecyclableBatchThreadPoolExecutor.java +++ b/hutool-core/src/main/java/cn/hutool/v7/core/thread/RecyclableBatchThreadPoolExecutor.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.core.thread; import java.util.*; diff --git a/hutool-db/src/main/java/cn/hutool/v7/db/pojo/Test.java b/hutool-db/src/main/java/cn/hutool/v7/db/pojo/Test.java deleted file mode 100644 index ccbd40ba9..000000000 --- a/hutool-db/src/main/java/cn/hutool/v7/db/pojo/Test.java +++ /dev/null @@ -1,8 +0,0 @@ -package cn.hutool.v7.db.pojo; - -/** - * 为了通过test进行占位 - * @author choweli - */ -public class Test { -} diff --git a/hutool-db/src/main/java/cn/hutool/v7/db/sql/FetchDirection.java b/hutool-db/src/main/java/cn/hutool/v7/db/sql/FetchDirection.java index 062c287d4..a223373bb 100644 --- a/hutool-db/src/main/java/cn/hutool/v7/db/sql/FetchDirection.java +++ b/hutool-db/src/main/java/cn/hutool/v7/db/sql/FetchDirection.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.db.sql; import java.sql.ResultSet; diff --git a/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/activemq/ActiveMQEngine.java b/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/activemq/ActiveMQEngine.java index cc02e4329..ea1c156ae 100644 --- a/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/activemq/ActiveMQEngine.java +++ b/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/activemq/ActiveMQEngine.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.extra.mq.engine.activemq; import cn.hutool.v7.core.lang.Assert; diff --git a/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsConsumer.java b/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsConsumer.java index 25f6df1b2..707d7a66f 100644 --- a/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsConsumer.java +++ b/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsConsumer.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.extra.mq.engine.jms; import cn.hutool.v7.core.io.IoUtil; diff --git a/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsEngine.java b/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsEngine.java index 63b23fc9a..13ea60450 100644 --- a/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsEngine.java +++ b/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsEngine.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.extra.mq.engine.jms; import cn.hutool.v7.core.io.IoUtil; diff --git a/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsProducer.java b/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsProducer.java index 1da1878ec..3360d9f14 100644 --- a/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsProducer.java +++ b/hutool-extra/src/main/java/cn/hutool/v7/extra/mq/engine/jms/JmsProducer.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.extra.mq.engine.jms; import cn.hutool.v7.core.io.IoUtil; diff --git a/hutool-http/src/main/java/cn/hutool/v7/http/client/engine/jdk11/Jdk11ClientEngine.java b/hutool-http/src/main/java/cn/hutool/v7/http/client/engine/jdk11/Jdk11ClientEngine.java index f5164b2b3..d4a7f902a 100644 --- a/hutool-http/src/main/java/cn/hutool/v7/http/client/engine/jdk11/Jdk11ClientEngine.java +++ b/hutool-http/src/main/java/cn/hutool/v7/http/client/engine/jdk11/Jdk11ClientEngine.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.http.client.engine.jdk11; import cn.hutool.v7.http.HttpException; diff --git a/hutool-http/src/main/java/cn/hutool/v7/http/client/engine/jdk11/Jdk11HttpResponse.java b/hutool-http/src/main/java/cn/hutool/v7/http/client/engine/jdk11/Jdk11HttpResponse.java index 8b159c810..486bed99b 100644 --- a/hutool-http/src/main/java/cn/hutool/v7/http/client/engine/jdk11/Jdk11HttpResponse.java +++ b/hutool-http/src/main/java/cn/hutool/v7/http/client/engine/jdk11/Jdk11HttpResponse.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.http.client.engine.jdk11; import cn.hutool.v7.core.lang.wrapper.SimpleWrapper; diff --git a/hutool-http/src/main/java/cn/hutool/v7/http/server/engine/jetty/JettyRequest.java b/hutool-http/src/main/java/cn/hutool/v7/http/server/engine/jetty/JettyRequest.java index 5e0dea5dd..60283b3ae 100644 --- a/hutool-http/src/main/java/cn/hutool/v7/http/server/engine/jetty/JettyRequest.java +++ b/hutool-http/src/main/java/cn/hutool/v7/http/server/engine/jetty/JettyRequest.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.http.server.engine.jetty; import cn.hutool.v7.http.server.handler.ServerRequest; diff --git a/hutool-http/src/main/java/cn/hutool/v7/http/server/engine/jetty/JettyResponse.java b/hutool-http/src/main/java/cn/hutool/v7/http/server/engine/jetty/JettyResponse.java index cf3eb6051..696d65645 100644 --- a/hutool-http/src/main/java/cn/hutool/v7/http/server/engine/jetty/JettyResponse.java +++ b/hutool-http/src/main/java/cn/hutool/v7/http/server/engine/jetty/JettyResponse.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2025 Hutool Team and hutool.cn + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package cn.hutool.v7.http.server.engine.jetty; import cn.hutool.v7.http.server.handler.ServerResponse;