samedi 28 octobre 2017

If condition statement erroring "There are coding standard violations (Java)

I am working on a customization where conditions are based on participant disability value "Y" and relation code child value "C".

Build Error points to: "There are coding standard violations" ; Avoid using if statements without curly braces.

If client wants to display disability footnote on the page and dpnd is disable ; baseFtnt2 is the footnote that needs show.

I believe the error is in the syntax:

            if (
                dpndEvntBean.getHasDpndDsbl() &&
                    item.getDsblCd()
                    .trim()
                    .equals("Y") && ddb.getRltnCd().trim().equals("C"));

        {
            ddb.addFtntIdListEntry("baseFtnt2");
        }

Any help would be appreciated! Thanks in advance

Aucun commentaire:

Enregistrer un commentaire