From ca434849ff0ac965c7b2221a3710bf7c12bbd646 Mon Sep 17 00:00:00 2001 From: Yuriy Budiyev Date: Wed, 11 Oct 2017 01:24:55 +0300 Subject: [PATCH] Dev --- src/main/java/com/budiyev/android/codescanner/Rect.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/com/budiyev/android/codescanner/Rect.java b/src/main/java/com/budiyev/android/codescanner/Rect.java index 48dee2e..f309a43 100644 --- a/src/main/java/com/budiyev/android/codescanner/Rect.java +++ b/src/main/java/com/budiyev/android/codescanner/Rect.java @@ -62,11 +62,7 @@ public int getHeight() { @Override public int hashCode() { - int result = mLeft; - result = 31 * result + mTop; - result = 31 * result + mRight; - result = 31 * result + mBottom; - return result; + return 31 * (31 * (31 * mLeft + mTop) + mRight) + mBottom; } @Override