6c4c3319fa919150b321c8b89987c86fbeeea2c0 |
|
21-Jun-2013 |
Zhihong Xu <zhihongx@google.com> |
Test only: Fix ShadowSpannableString.getSpans In the original version of the method, when the returned array is empty, Java sees it as an array of Objects that it can't cast to T[] after the method returns, resulting in a ClassCastException. This CL fixed that by instantiating an array of the expected type first. Change-Id: Ic918b27566bfc7c8acab0460116e6bb0f6154a62
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ShadowSpannableString.java
|