Bug 780928 - Fix rawtypes usage in LayerView.java. r=kats
authorChris Lord <chrislord.net@gmail.com>
Tue, 07 Aug 2012 18:57:19 +0100
changeset 103600 3b52919b46136805e232b5121459ae2fb9e16ac4
parent 103599 13e6a06bc805442bafa7190c2c6147232accf1e7
child 103601 e539f011a452379837344da0767e2747cbc1d849
push id37
push usershu@rfrn.org
push dateThu, 16 Aug 2012 01:15:22 +0000
reviewerskats
bugs780928
milestone17.0a1
Bug 780928 - Fix rawtypes usage in LayerView.java. r=kats Fix unnecessary usage of raw Class type.
mobile/android/base/gfx/LayerView.java
--- a/mobile/android/base/gfx/LayerView.java
+++ b/mobile/android/base/gfx/LayerView.java
@@ -62,17 +62,17 @@ public class LayerView extends FrameLayo
         // we can only use TextureView on ICS or higher
         if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
             Log.i(LOGTAG, "Not using TextureView: not on ICS+");
             return false;
         }
 
         try {
             // and then we can only use it if we have a hardware accelerated window
-            Method m = View.class.getMethod("isHardwareAccelerated", new Class[0]);
+            Method m = View.class.getMethod("isHardwareAccelerated", (Class[]) null);
             return (Boolean) m.invoke(this);
         } catch (Exception e) {
             Log.i(LOGTAG, "Not using TextureView: caught exception checking for hw accel: " + e.toString());
             return false;
         }
     }
 
     public LayerView(Context context, AttributeSet attrs) {