From 4f4f4ff3382db3c90ff66be05ee06c474ac5c290 Mon Sep 17 00:00:00 2001 From: Mygod Date: Sat, 30 May 2020 22:20:30 -0400 Subject: [PATCH] Refine code style --- mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbour.kt | 2 +- .../test/java/be/mygod/vpnhotspot/net/MacAddressCompatTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbour.kt b/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbour.kt index 54592f7d..6cee9471 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbour.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/net/IpNeighbour.kt @@ -59,7 +59,7 @@ data class IpNeighbour(val ip: InetAddress, val dev: String, val lladdr: MacAddr } catch (e: IllegalArgumentException) { if (match.groups[4] == null) return emptyList() // for DELETING, we only care about IP address and do not care if MAC is not present - if (state != State.DELETING) Timber.w(IOException("Failed to find MAC address for $line")) + if (state != State.DELETING) Timber.w(IOException("Failed to find MAC address for $line", e)) MacAddressCompat.ALL_ZEROS_ADDRESS } val result = IpNeighbour(ip, dev, mac, state) diff --git a/mobile/src/test/java/be/mygod/vpnhotspot/net/MacAddressCompatTest.kt b/mobile/src/test/java/be/mygod/vpnhotspot/net/MacAddressCompatTest.kt index f65ee1f6..142f71c8 100644 --- a/mobile/src/test/java/be/mygod/vpnhotspot/net/MacAddressCompatTest.kt +++ b/mobile/src/test/java/be/mygod/vpnhotspot/net/MacAddressCompatTest.kt @@ -3,7 +3,7 @@ package be.mygod.vpnhotspot.net import org.junit.Assert.* import org.junit.Test -class ConvertersTest { +class MacAddressCompatTest { @Test fun macSerialization() { for (test in listOf("01:23:45:67:89:ab", "DE:AD:88:88:BE:EF")) {