mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Code cleanup
This commit is contained in:
parent
9a7286a84b
commit
f1eca17991
@ -32,7 +32,6 @@ public class Utils {
|
||||
private static Map<String, String> locationColumnsMap = new HashMap<>();
|
||||
|
||||
static {
|
||||
|
||||
genericColumnsMap.put("deviceModel", "DEVICE_MODEL");
|
||||
genericColumnsMap.put("vendor", "VENDOR");
|
||||
genericColumnsMap.put("osVersion", "OS_VERSION");
|
||||
@ -105,23 +104,11 @@ public class Utils {
|
||||
}
|
||||
|
||||
public static boolean checkDeviceDetailsColumns(String str) {
|
||||
if (genericColumnsMap.containsKey(str)) {
|
||||
return true;
|
||||
}
|
||||
if (genericColumnsMap.containsValue(str)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return genericColumnsMap.containsKey(str) || genericColumnsMap.containsValue(str);
|
||||
}
|
||||
|
||||
public static boolean checkDeviceLocationColumns(String str) {
|
||||
if (locationColumnsMap.containsKey(str)) {
|
||||
return true;
|
||||
}
|
||||
if (locationColumnsMap.containsValue(str)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return locationColumnsMap.containsKey(str) || locationColumnsMap.containsValue(str);
|
||||
}
|
||||
|
||||
public static List<String> convertStringToList(String str) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user