Merge "Use ArrayInstance.getLength method."
am: 8426a909ec

Change-Id: I278adb689ab2e73f6aab852b7256c19933484e90