Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
HMBSbige committed Nov 6, 2019
1 parent 2b50e85 commit 5722a36
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 12 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/com/github/shadowsocks/BaseService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ abstract class BaseService : Service()

}

@JvmOverloads
fun stopRunner(stopService: Boolean, msg: String? = null)
{
// clean up recevier
Expand Down Expand Up @@ -353,7 +352,6 @@ abstract class BaseService : Service()
return START_NOT_STICKY
}

@JvmOverloads
protected fun changeState(s: Int, msg: String? = null)
{
val handler = Handler(Looper.getMainLooper())
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/github/shadowsocks/BaseVpnService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ abstract class BaseVpnService : VpnService()
return Service.START_NOT_STICKY
}

@JvmOverloads
protected fun changeState(s: Int, msg: String? = null)
{
val handler = Handler(Looper.getMainLooper())
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/github/shadowsocks/GuardedProcess.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class GuardedProcess(private val cmd: List<String>)
private var process: Process? = null
private var isRestart = false

@JvmOverloads
fun start(onRestartCallback: (() -> Boolean)? = null): GuardedProcess
{
val semaphore = Semaphore(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,6 @@ class ProfileManagerActivity : AppCompatActivity(), View.OnClickListener, Toolba
}
}

@JvmOverloads
fun updateText(txTotal: Long = 0, rxTotal: Long = 0, elapsedInput: Long = -1)
{
val builder = SpannableStringBuilder()
Expand Down Expand Up @@ -1189,7 +1188,6 @@ class ProfileManagerActivity : AppCompatActivity(), View.OnClickListener, Toolba
itemView.setOnLongClickListener(this)
}

@JvmOverloads
fun updateText(isShowUrl: Boolean = false)
{
val builder = SpannableStringBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ open class ServiceBoundContext(base: Context) : ContextWrapper(base), IBinder.De
{
}

@JvmOverloads
fun attachService(callback: IShadowsocksServiceCallback.Stub? = null)
{
this.callback = callback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ abstract class ServiceBoundService : Service(), IBinder.DeathRecipient
{
}

@JvmOverloads
fun attachService(callback: IShadowsocksServiceCallback.Stub? = null)
{
this.callback = callback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.github.shadowsocks.aidl.*
import com.github.shadowsocks.utils.*
import java.util.*

class ShadowsocksNotification @JvmOverloads constructor(private val service: Service, private val profileName: String, private val visible: Boolean = false)
class ShadowsocksNotification constructor(private val service: Service, private val profileName: String, private val visible: Boolean = false)
{
private val callback by lazy {
object : IShadowsocksServiceCallback.Stub()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ class ProfileManager(private val dbHelper: DBHelper)
/**
* create profile
*/
@JvmOverloads
fun createProfile(p: Profile? = null): Profile
{
val profile: Profile = p ?: Profile()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ private constructor(builder: OkHttpClient.Builder? = null)
*
* @param builder client builder object
*/
@JvmOverloads
fun init(builder: OkHttpClient.Builder? = null)
{
if (sInstance == null)
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/github/shadowsocks/utils/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ object Utils
* @param file file
* @param content string content
*/
@JvmOverloads //TODO: Drop Java
fun printToFile(file: File, content: String, isPrintln: Boolean = false)
{
var p: PrintWriter? = null
Expand Down

0 comments on commit 5722a36

Please sign in to comment.