Open jonknight73 opened 4 years ago
Currently we are importing the Guava library for a single line of code in P2PResolvedService.java:
mInetAddress = InetAddresses.forString((String) map.get(P2PService.HOST_LABEL));
It would be nice to find a lighter-weight implementation.
This line is converted the string host to an InetAddress version. The standard version tends to try to use a DNS lookup which is not appropriate for WiFi Direct.
Linter output: 'com.google.common.net.InetAddresses' is marked unstable
Currently we are importing the Guava library for a single line of code in P2PResolvedService.java:
It would be nice to find a lighter-weight implementation.
This line is converted the string host to an InetAddress version. The standard version tends to try to use a DNS lookup which is not appropriate for WiFi Direct.