[
https://issues.apache.org/jira/browse/AMBARI-23773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated AMBARI-23773:
------------------------------------
Labels: pull-request-available (was: )
> Suppress FindBugs warnings for EclipseLink-generated code
> ---------------------------------------------------------
>
> Key: AMBARI-23773
> URL: https://issues.apache.org/jira/browse/AMBARI-23773
> Project: Ambari
> Issue Type: Improvement
> Components: ambari-server
> Reporter: Doroszlai, Attila
> Assignee: Doroszlai, Attila
> Priority: Major
> Labels: pull-request-available
> Fix For: trunk
>
>
> FindBugs produces 1428 warnings for String comparisons in Ambari Server's
> statically weaved entities. This amounts to almost 400KB in Jenkins build
> logs.
> {noformat:title=}
> [INFO] Comparison of String parameter using == or != in
> org.apache.ambari.server.orm.entities.AlertCurrentEntity._persistence_get(String)
> [org.apache.ambari.server.orm.entities.AlertCurrentEntity] In
> AlertCurrentEntity.java ES_COMPARING_PARAMETER_STRING_WITH_EQ
> [INFO] Comparison of String parameter using == or != in
> org.apache.ambari.server.orm.entities.AlertCurrentEntity._persistence_set(String,
> Object) [org.apache.ambari.server.orm.entities.AlertCurrentEntity] In
> AlertCurrentEntity.java ES_COMPARING_PARAMETER_STRING_WITH_EQ
> {noformat}
> As we have no control over this kind of generated code, it should be
> suppressed, both to focus on more real problems pointed out by FindBugs, and
> to reduce size of our build logs.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)