From 1377ed9ec58cf8e85a3904a6cbdded35d3507438 Mon Sep 17 00:00:00 2001 From: Glavo Date: Sat, 16 Nov 2024 23:05:43 +0800 Subject: [PATCH] Release 0.76.0 --- build.gradle.kts | 2 +- .../src/main/java/kala/collection/Set.java | 4 ---- .../collection/immutable/ImmutableArraySet.java | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index afb1e19c..6878e0ed 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,7 +25,7 @@ plugins { allprojects { group = "org.glavo.kala" - version = "0.76.0" + "-SNAPSHOT" + version = "0.76.0"// + "-SNAPSHOT" description = "Basic components of Kala" diff --git a/kala-collection/src/main/java/kala/collection/Set.java b/kala-collection/src/main/java/kala/collection/Set.java index 5e07812d..4a6ecf48 100644 --- a/kala-collection/src/main/java/kala/collection/Set.java +++ b/kala-collection/src/main/java/kala/collection/Set.java @@ -15,11 +15,8 @@ */ package kala.collection; -import kala.annotations.DelegateBy; import kala.collection.base.Iterators; import kala.collection.factory.CollectionFactory; -import kala.collection.immutable.AbstractImmutableSet; -import kala.collection.immutable.ImmutableHashSet; import kala.collection.immutable.ImmutableSet; import kala.collection.internal.convert.AsJavaConvert; import kala.collection.internal.convert.FromJavaConvert; @@ -27,7 +24,6 @@ import org.jetbrains.annotations.NotNull; import java.util.Iterator; -import java.util.Objects; import java.util.function.Predicate; import java.util.stream.Stream; diff --git a/kala-collection/src/main/java/kala/collection/immutable/ImmutableArraySet.java b/kala-collection/src/main/java/kala/collection/immutable/ImmutableArraySet.java index 9e17454e..26187f90 100644 --- a/kala-collection/src/main/java/kala/collection/immutable/ImmutableArraySet.java +++ b/kala-collection/src/main/java/kala/collection/immutable/ImmutableArraySet.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Glavo + * + * 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 kala.collection.immutable; import kala.collection.base.ObjectArrays; @@ -5,6 +20,7 @@ import kala.collection.mutable.MutableArraySet; import org.jetbrains.annotations.NotNull; +import java.io.Serial; import java.io.Serializable; import java.util.Arrays; import java.util.Iterator; @@ -13,6 +29,7 @@ @SuppressWarnings({"unchecked", "rawtypes"}) public final class ImmutableArraySet extends AbstractImmutableSet implements Serializable { + @Serial private static final long serialVersionUID = -7762205380003045169L; private static final Factory FACTORY = new Factory<>();