Kaydet (Commit) f091cc76 authored tarafından Christian Lohmaier's avatar Christian Lohmaier

android: simplify boolean statement

Change-Id: I92cdccfe7b97d9baf29b1155990a38b26579e365
üst 8be74d03
......@@ -89,10 +89,9 @@ public final class RectUtils {
public static boolean fuzzyEquals(RectF a, RectF b) {
if (a == null && b == null)
return true;
else if ((a == null && b != null) || (a != null && b == null))
return false;
else
return FloatUtils.fuzzyEquals(a.top, b.top)
return a != null && b != null
&& FloatUtils.fuzzyEquals(a.top, b.top)
&& FloatUtils.fuzzyEquals(a.left, b.left)
&& FloatUtils.fuzzyEquals(a.right, b.right)
&& FloatUtils.fuzzyEquals(a.bottom, b.bottom);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment