fix: Check for class type exactly instead of with contains (#310)

This commit is contained in:
oSumAtrIX
2024-09-18 14:36:15 +02:00
committed by GitHub
parent 525beda18e
commit 69f2f20fd9
3 changed files with 5 additions and 2 deletions

View File

@@ -104,6 +104,7 @@ class BytecodePatchContext internal constructor(private val config: PatcherConfi
* @param type The type of the class.
* @return A proxy for the first class that matches the type.
*/
@Deprecated("Use classBy { type in it.type } instead.", ReplaceWith("classBy { type in it.type }"))
fun classByType(type: String) = classBy { type in it.type }
/**