我的代码:
class HttpRequestTask(private val debtWsUrl : URI, debtorText : TextView) :
AsyncTask<Void, Void, Iterable<Debtor>?>() {
val debtorText: TextView = debtorText
}
Run Code Online (Sandbox Code Playgroud)
为什么使用TextView显示警告:
该字段泄漏上下文对象
?
我怎么能阻止这个?
可以在Intellij Idea 14中执行类似于Eclipse的操作:重构:提取类?或者我应该手动完成?
菜单中找不到合适的选项,我惊讶的选项不可用.