Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CloseGuard (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/platform/Android10Platform.kt

        return if (Build.VERSION.SDK_INT >= 30) {
          CloseGuard().apply { open(closer) }
        } else {
          super.getStackTraceForCloseable(closer)
        }
      }
    
      override fun logCloseableLeak(
        message: String,
        stackTrace: Any?,
      ) {
        if (Build.VERSION.SDK_INT >= 30) {
          (stackTrace as CloseGuard).warnIfOpen()
        } else {
          // Unable to report via CloseGuard. As a last-ditch effort, send it to the logger.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (1)
Back to top