我必须将一些代码从 C# 转换为 Java,并且我有以下代码:
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class PVAResponseAttribute : XmlRootAttribute
{
private const string ROOT_ELEMENT_NAME = "data";
public PVAResponseAttribute()
: base(ROOT_ELEMENT_NAME)
{
}
Java 中的等价物是什么?谢谢