Menu

#1354 Complex FieldDeclarationsShouldBeAtStartOfClass false positive with Spring annotations

PMD-5.3.2
closed
None
PMD
3-Major
Bug
5.3.1
2015-05-15
2015-05-15
Rei Angelus
No

I found a false positive with FieldDeclarationsShouldBeAtStartOfClass in a quite particular case :

:::xml
<test-code>
<description>Complex FieldDeclarationsShouldBeAtStartOfClass false positive with Spring annotations</description>
<expected-problems>0</expected-problems>
<![CDATA[
public class MyClass {
</test-code>

private static final String MY_STRING = "STRING";

@Autowired
private MyPrivate myPrivate;

@Bean
public void myPublicBean() {}

private static myPrivateStatic() {}

}
]]>

Related

Issues: #1331
Issues: #1364

Discussion

  • Andreas Dangel

    Andreas Dangel - 2015-05-15
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-5.3.2
     

Log in to post a comment.