From 60f152caeee38579433a31dd3a98e91dc3d23ff6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 13 Aug 2014 10:19:51 +0200 Subject: java: avoid unnecessary comparisons in boolean expressions i.e. stuff like "x == true" Change-Id: Ib82a4a30e736df392405332fa197b588482cffcf --- .../lib/uno/helper/MultiTypeInterfaceContainer_Test.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java') diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java index 331c37618b1c..22e664170486 100644 --- a/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java +++ b/javaunohelper/test/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer_Test.java @@ -107,7 +107,7 @@ public class MultiTypeInterfaceContainer_Test boolean bOk= true; for (int c= 0; c < i; c++) bOk= bOk && r[c]; - if (bOk == false) + if (!bOk) System.out.println("Failed"); else System.out.println("Ok"); @@ -153,7 +153,7 @@ public class MultiTypeInterfaceContainer_Test boolean bOk= true; for (int c= 0; c < i; c++) bOk= bOk && r[c]; - if (bOk == false) + if (!bOk) System.out.println("Failed"); else System.out.println("Ok"); @@ -186,7 +186,7 @@ public class MultiTypeInterfaceContainer_Test boolean bOk= true; for (int c= 0; c < i; c++) bOk= bOk && r[c]; - if (bOk == false) + if (!bOk) System.out.println("Failed"); else System.out.println("Ok"); @@ -221,7 +221,7 @@ public class MultiTypeInterfaceContainer_Test boolean bOk= true; for (int c= 0; c < i; c++) bOk= bOk && r[c]; - if (bOk == false) + if (!bOk) System.out.println("Failed"); else System.out.println("Ok"); @@ -254,7 +254,7 @@ public class MultiTypeInterfaceContainer_Test boolean bOk= true; for (int c= 0; c < i; c++) bOk= bOk && r[c]; - if (bOk == false) + if (!bOk) System.out.println("Failed"); else System.out.println("Ok"); @@ -288,7 +288,7 @@ public class MultiTypeInterfaceContainer_Test boolean bOk= true; for (int c= 0; c < i; c++) bOk= bOk && r[c]; - if (bOk == false) + if (!bOk) System.out.println("Failed"); else System.out.println("Ok"); -- cgit