jaxb-ri icon indicating copy to clipboard operation
jaxb-ri copied to clipboard

respect VariableNamingConventions

Open Tomas-Kraus opened this issue 15 years ago • 4 comments

http://pmd.sourceforge.net/rules/naming.html#VariableNamingConventions

Example violations:

Variables that are final and static should be in all caps.

private final static QName _InvalidParameterException_QNAME = new QName ("tld.domain.package.exceptions", "InvalidParameterException");

public final static QName MyPort = new QName ("http://www.mydomain.de", "MyPort");

Variables that are not final should not contain underscores (except for underscores in standard prefix/suffix).

@XmlElement(name = "Boolean") protected boolean _boolean;

See also: https://issues.apache.org/jira/browse/CXF-2287

Environment

Operating System: All Platform: All

Affected Versions

[2.1.9]

Tomas-Kraus avatar Jun 30 '09 12:06 Tomas-Kraus

  • Issue Imported From: https://github.com/javaee/jaxb-v2/issues/661
  • Original Issue Raised By:@glassfishrobot
  • Original Issue Assigned To: @glassfishrobot

Tomas-Kraus avatar Sep 21 '18 15:09 Tomas-Kraus

@glassfishrobot Commented Reported by deki

Tomas-Kraus avatar Jun 30 '09 12:06 Tomas-Kraus

@glassfishrobot Commented Was assigned to snajper

Tomas-Kraus avatar Jun 30 '09 12:06 Tomas-Kraus

@glassfishrobot Commented This issue was imported from java.net JIRA JAXB-661

Tomas-Kraus avatar Apr 24 '17 12:04 Tomas-Kraus