[fix]Override the method of Object.clone(), but not implements Cloneable (#11761)

This commit is contained in:
SeasonPan 2023-03-10 15:18:41 +08:00 committed by GitHub
parent 6c557d1caf
commit 27420cf68a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ import java.util.concurrent.ThreadLocalRandom;
* @param <E>
* @since 3.0
*/
public class BitList<E> extends AbstractList<E> {
public class BitList<E> extends AbstractList<E> implements Cloneable {
private final BitSet rootSet;
private volatile List<E> originList;
private final static BitList emptyList = new BitList(Collections.emptyList());