Make things private

This commit is contained in:
Mygod
2019-02-04 14:38:15 +08:00
parent 50911bd31f
commit 09a1834cb5
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ import be.mygod.vpnhotspot.widget.SmartSnackbar
import timber.log.Timber
import java.net.InterfaceAddress
class LocalOnlyInterfaceManager(val caller: Any, val downstream: String) {
class LocalOnlyInterfaceManager(private val caller: Any, val downstream: String) {
private var routing: Routing? = null
init {

View File

@@ -20,7 +20,7 @@ import java.net.*
*
* Once revert is called, this object no longer serves any purpose.
*/
class Routing(val caller: Any, val downstream: String, ownerAddress: InterfaceAddress? = null) :
class Routing(private val caller: Any, private val downstream: String, ownerAddress: InterfaceAddress? = null) :
IpNeighbourMonitor.Callback {
companion object {
/**