OSDN Git Service

Correct some lint warnings
[android-x86/packages-apps-Eleven.git] / src / org / lineageos / eleven / utils / ShakeDetector.java
index 3a971f4..fb481f0 100644 (file)
@@ -213,7 +213,7 @@ public class ShakeDetector implements SensorEventListener {
 
         /** Copies the samples into a list, with the oldest entry at index 0. */
         List<Sample> asList() {
-            List<Sample> list = new ArrayList<Sample>();
+            List<Sample> list = new ArrayList<>();
             Sample s = oldest;
             while (s != null) {
                 list.add(s);