@@ -40,8 +40,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
4040 * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
4141 */
4242 public static Map .Entry <String , Map <String , ?>> currentActivityCommand () {
43- return new AbstractMap .SimpleEntry <>(
44- CURRENT_ACTIVITY , ImmutableMap .<String , Object >of ());
43+ return new AbstractMap .SimpleEntry <>(CURRENT_ACTIVITY , ImmutableMap .of ());
4544 }
4645
4746 /**
@@ -50,8 +49,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
5049 * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
5150 */
5251 public static Map .Entry <String , Map <String , ?>> currentPackageCommand () {
53- return new AbstractMap .SimpleEntry <>(
54- GET_CURRENT_PACKAGE , ImmutableMap .<String , Object >of ());
52+ return new AbstractMap .SimpleEntry <>(GET_CURRENT_PACKAGE , ImmutableMap .of ());
5553 }
5654
5755 /**
@@ -77,8 +75,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
7775 *
7876 */
7977 public static Map .Entry <String , Map <String , ?>> getSupportedPerformanceDataTypesCommand () {
80- return new AbstractMap .SimpleEntry <>(
81- GET_SUPPORTED_PERFORMANCE_DATA_TYPES , ImmutableMap .<String , Object >of ());
78+ return new AbstractMap .SimpleEntry <>(GET_SUPPORTED_PERFORMANCE_DATA_TYPES , ImmutableMap .of ());
8279 }
8380
8481 /**
@@ -108,10 +105,9 @@ public class AndroidMobileCommandHelper extends MobileCommand {
108105 * [1478095200, null, null, 10079213, 19962, 2487705, 20015, 0, 3600],
109106 * [1478098800, null, null, 4444433, 10227, 1430356, 10493, 0, 3600]]
110107 * in case of cpu info : [[user, kernel], [0.9, 1.3]]
111- * @throws Exception if the performance data type is not supported, thows Error
112108 */
113109 public static Map .Entry <String , Map <String , ?>> getPerformanceDataCommand (
114- String packageName , String dataType , int dataReadTimeout ) throws Exception {
110+ String packageName , String dataType , int dataReadTimeout ) {
115111 String [] parameters = new String [] {"packageName" , "dataType" , "dataReadTimeout" };
116112 Object [] values = new Object [] {packageName , dataType , dataReadTimeout };
117113 return new AbstractMap .SimpleEntry <>(
@@ -126,8 +122,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
126122 * {@link Map} command arguments.
127123 */
128124 public static Map .Entry <String , Map <String , ?>> getDisplayDensityCommand () {
129- return new AbstractMap .SimpleEntry <>(
130- GET_DISPLAY_DENSITY , ImmutableMap .<String , Object >of ());
125+ return new AbstractMap .SimpleEntry <>(GET_DISPLAY_DENSITY , ImmutableMap .of ());
131126 }
132127
133128 /**
@@ -137,8 +132,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
137132 * {@link Map} command arguments.
138133 */
139134 public static Map .Entry <String , Map <String , ?>> getNetworkConnectionCommand () {
140- return new AbstractMap .SimpleEntry <>(
141- GET_NETWORK_CONNECTION , ImmutableMap .<String , Object >of ());
135+ return new AbstractMap .SimpleEntry <>(GET_NETWORK_CONNECTION , ImmutableMap .of ());
142136 }
143137
144138 /**
@@ -148,8 +142,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
148142 * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
149143 */
150144 public static Map .Entry <String , Map <String , ?>> getSystemBarsCommand () {
151- return new AbstractMap .SimpleEntry <>(
152- GET_SYSTEM_BARS , ImmutableMap .<String , Object >of ());
145+ return new AbstractMap .SimpleEntry <>(GET_SYSTEM_BARS , ImmutableMap .of ());
153146 }
154147
155148 /**
@@ -159,8 +152,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
159152 * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
160153 */
161154 public static Map .Entry <String , Map <String , ?>> isLockedCommand () {
162- return new AbstractMap .SimpleEntry <>(
163- IS_LOCKED , ImmutableMap .<String , Object >of ());
155+ return new AbstractMap .SimpleEntry <>(IS_LOCKED , ImmutableMap .of ());
164156 }
165157
166158 /**
@@ -180,8 +172,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
180172 * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
181173 */
182174 public static Map .Entry <String , Map <String , ?>> openNotificationsCommand () {
183- return new AbstractMap .SimpleEntry <>(
184- OPEN_NOTIFICATIONS , ImmutableMap .<String , Object >of ());
175+ return new AbstractMap .SimpleEntry <>(OPEN_NOTIFICATIONS , ImmutableMap .of ());
185176 }
186177
187178 /**
@@ -250,7 +241,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
250241 * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
251242 */
252243 public static Map .Entry <String , Map <String , ?>> toggleLocationServicesCommand () {
253- return new AbstractMap .SimpleEntry <>(TOGGLE_LOCATION_SERVICES , ImmutableMap .< String , Object > of ());
244+ return new AbstractMap .SimpleEntry <>(TOGGLE_LOCATION_SERVICES , ImmutableMap .of ());
254245 }
255246
256247 /**
@@ -259,7 +250,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
259250 * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
260251 */
261252 public static Map .Entry <String , Map <String , ?>> unlockCommand () {
262- return new AbstractMap .SimpleEntry <>(UNLOCK , ImmutableMap .< String , Object > of ());
253+ return new AbstractMap .SimpleEntry <>(UNLOCK , ImmutableMap .of ());
263254 }
264255
265256
@@ -392,7 +383,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
392383 * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
393384 */
394385 public static Map .Entry <String , Map <String , ?>> toggleWifiCommand () {
395- return new AbstractMap .SimpleEntry <>(TOGGLE_WIFI , ImmutableMap .< String , Object > of ());
386+ return new AbstractMap .SimpleEntry <>(TOGGLE_WIFI , ImmutableMap .of ());
396387 }
397388
398389 /**
@@ -401,7 +392,7 @@ public class AndroidMobileCommandHelper extends MobileCommand {
401392 * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
402393 */
403394 public static Map .Entry <String , Map <String , ?>> toggleAirplaneCommand () {
404- return new AbstractMap .SimpleEntry <>(TOGGLE_AIRPLANE_MODE , ImmutableMap .< String , Object > of ());
395+ return new AbstractMap .SimpleEntry <>(TOGGLE_AIRPLANE_MODE , ImmutableMap .of ());
405396 }
406397
407398 /**
@@ -410,6 +401,6 @@ public class AndroidMobileCommandHelper extends MobileCommand {
410401 * @return a key-value pair. The key is the command name. The value is a {@link Map} command arguments.
411402 */
412403 public static Map .Entry <String , Map <String , ?>> toggleDataCommand () {
413- return new AbstractMap .SimpleEntry <>(TOGGLE_DATA , ImmutableMap .< String , Object > of ());
404+ return new AbstractMap .SimpleEntry <>(TOGGLE_DATA , ImmutableMap .of ());
414405 }
415406}
0 commit comments