mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 00:19:11 +07:00
9 lines
372 B
Java
9 lines
372 B
Java
class CastTest
|
|
{
|
|
public static void main (String[] args) throws CloneNotSupportedException
|
|
{
|
|
CastTest ct1 = new CastTest ();
|
|
// The cast of ct1 is obviously redundant (although the cast of the result is necessary)
|
|
CastTest ct2 = (CastTest) ((<warning descr="Casting 'ct1' to 'CastTest' is redundant">CastTest</warning>)ct1).clone();
|
|
}
|
|
} |