@@ -361,10 +361,11 @@ class Fingerprint internal constructor(
361
361
context(BytecodePatchContext )
362
362
val patternMatchOrNull : PatternMatch ?
363
363
get() {
364
- if (matchOrNull == null || matchOrNull!! .filterMatches == null ) {
364
+ val match = this .matchOrNull
365
+ if (match == null || match.filterMatches == null ) {
365
366
return null
366
367
}
367
- return matchOrNull !! .patternMatch
368
+ return match .patternMatch
368
369
}
369
370
370
371
/* *
@@ -483,7 +484,7 @@ class Match internal constructor(
483
484
*/
484
485
val method by lazy { classDef.methods.first { MethodUtil .methodSignaturesMatch(it, originalMethod) } }
485
486
486
- @Deprecated(" Instead use filterMatch " )
487
+ @Deprecated(" Instead use filterMatches " , ReplaceWith ( " filterMatches " ) )
487
488
val patternMatch by lazy {
488
489
if (filterMatches == null ) throw PatchException (" Did not match $this " )
489
490
PatternMatch (filterMatches!! .first().index, filterMatches.last().index)
@@ -506,7 +507,7 @@ class Match internal constructor(
506
507
* @param index The instruction index it matched with.
507
508
* @param instruction The instruction that matched.
508
509
*/
509
- class FilterMatch (
510
+ class FilterMatch internal constructor (
510
511
val filter : InstructionFilter ,
511
512
val index : Int ,
512
513
val instruction : Instruction
0 commit comments