mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
type arguments containment: ensure arrays are contained in type parameters with Serializable, Cloneable or Object bounds (IDEA-165295)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
import java.io.Serializable;
|
||||
abstract class Box<<warning descr="Type parameter 'T' is never used">T</warning> extends Serializable> {
|
||||
public static <V extends Serializable> Box<V> get(ByteArrayBox byteArrayBox) {
|
||||
return <warning descr="Unchecked cast: 'ByteArrayBox' to 'Box<V>'">(Box<V>) byteArrayBox</warning>;
|
||||
}
|
||||
}
|
||||
|
||||
final class ByteArrayBox extends Box<byte[]> {}
|
||||
Reference in New Issue
Block a user