Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/FindMatchRectsDetails.java

Issue 267653002: Tweak the FindMatchRectsDetails code to make findbugs happy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/FindMatchRectsDetails.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/FindMatchRectsDetails.java b/chrome/android/java/src/org/chromium/chrome/browser/FindMatchRectsDetails.java
index a3f19a2d02105d6bb4d5f9a72ebfb4977a725ce2..5d66e541adb17d28b8ee2bc5ce23c430a8f9c50c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/FindMatchRectsDetails.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/FindMatchRectsDetails.java
@@ -19,9 +19,9 @@ public class FindMatchRectsDetails {
/** Rect of the active match in find-in-page coordinates. */
public final RectF activeRect;
- public FindMatchRectsDetails(int version, RectF[] rects, RectF activeRect) {
+ public FindMatchRectsDetails(int version, int numRects, RectF activeRect) {
this.version = version;
- this.rects = rects;
+ this.rects = new RectF[numRects];
this.activeRect = activeRect;
}
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698