You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Geert Ijewski (Jira)" <ji...@apache.org> on 2023/09/16 12:56:00 UTC

[jira] [Created] (CXF-8928) Reduce code quality warnings in generated code

Geert Ijewski created CXF-8928:
----------------------------------

             Summary: Reduce code quality warnings in generated code
                 Key: CXF-8928
                 URL: https://issues.apache.org/jira/browse/CXF-8928
             Project: CXF
          Issue Type: Improvement
          Components: Soap Binding
            Reporter: Geert Ijewski


The cxf-codegen-plugin converts a WSDL into java classes, among them the class for the Jax-WS Service.

In the template some class members have the modifiers "public final static". The java standard recommends them to be in the order "public static final"

> If two or more (distinct) field modifiers appear in a field declaration, it is customary, though not required, that they appear in the order consistent with that shown above in the production for _FieldModifier_. – [https://docs.oracle.com/javase/specs/jls/se20/html/jls-8.html#jls-8.3.1]

 

If the generated source code is checked in to source control it is common that it will be analyzed using checkstyle, Teamscale and other linters. To reduce linter complaints the order should be changed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)