Can transient keywords mark a method?

前端 未结 5 973
小鲜肉
小鲜肉 2021-02-01 17:45

In a java class java.util.Locale, I find that the keyword transient marked a method.

 public final class Locale
    implements Cloneable, Serializable
{
    priv         


        
5条回答
  •  情歌与酒
    2021-02-01 18:15

    This has to be a bug. Or some buggy revision? transient is only applied on variables. Can you provide a link where you see that?

提交回复
热议问题