在我的JAVA程序中,我有这个"if"条件:
if( (!pccoNettNoAff && !transOPCVM && !garantie)
&& ( (pccoCourant == null)
|| ( (pccoCourant != null && rBale.getPcco() != null)
&& ( (pccoCourant.getId() != rBale.getPcco().getId())
|| ( pccoCourant.getId() == rBale.getPcco().getId()
&& tauxCourant!=null && rBale.getTauxCcf()!=null
&& rBale.getPartenaire()==null
&& rBale.getTauxCcf()!=tauxCourant
)
)
)
)
)
{
Run Code Online (Sandbox Code Playgroud)
我们可以通过以下方式将其翻译为:
图例:T = true,F = False:它们是每次测试的结果
((T)AND((F)OR((T)AND((F)OR(F)))))
所以我的最终结果显然是假的(Eclipse调试模式找到相同的结果)但是我的程序无论如何都要通过这个"if".
我真的不知道为什么会发生这种情况,也许在"if"条件下存在某种限制?
如果有人有任何想法,请帮助我:)
问候,
Cytemax