commit | c72f1a03add7d6b727fa222cfc1424dfe01ac746 | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@google.com> | Sun Feb 11 06:57:16 2018 -0800 |
committer | Pavlin Radoslavov <pavlin@google.com> | Sun Feb 11 07:37:36 2018 -0800 |
tree | bcaa9e61f97679e7ebb63729ce7e0c4ce72792ea | |
parent | 8a8b8f416fbd09df1803d193f7a261a6527fb2de [diff] |
Remove unnecessary null pointer initialization for class variables In Java, the class variables have default initialization - null for pointers. Also, removed unnecessary template arguments when creating templetized objects: OLD: List<BluetoothDevice> devices = new ArrayList<BluetoothDevice>(); NEW: List<BluetoothDevice> devices = new ArrayList<>(); Test: code compilation Bug: 73205770 Change-Id: Ib983ee40df6bc5bb250ed23fa05a92c6b0365a5a