From e6086511e5f7c28d439b645a6dbfbffc632d2e7a Mon Sep 17 00:00:00 2001 From: Lucaskyy Date: Thu, 14 Apr 2022 19:11:55 +0200 Subject: [PATCH] refactor: remove all parameter names --- .../revanced/patcher/usage/ExamplePatch.kt | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/test/kotlin/app/revanced/patcher/usage/ExamplePatch.kt b/src/test/kotlin/app/revanced/patcher/usage/ExamplePatch.kt index 8ff3e9b..b96be4f 100644 --- a/src/test/kotlin/app/revanced/patcher/usage/ExamplePatch.kt +++ b/src/test/kotlin/app/revanced/patcher/usage/ExamplePatch.kt @@ -32,30 +32,30 @@ import org.jf.dexlib2.immutable.value.ImmutableFieldEncodedValue import org.jf.dexlib2.util.Preconditions class ExamplePatch : Patch( - metadata = PatchMetadata( - shortName = "example-patch", - name = "ReVanced example patch", - description = "A demonstrative patch to feature the core features of the ReVanced patcher", - compatiblePackages = listOf("com.example.examplePackage"), - version = "0.0.1" + PatchMetadata( + "example-patch", + "ReVanced example patch", + "A demonstrative patch to feature the core features of the ReVanced patcher", + listOf("com.example.examplePackage"), + "0.0.1" ), - signatures = setOf( + setOf( MethodSignature( MethodSignatureMetadata( - name = "Example signature", - methodMetadata = MethodMetadata( - definingClass = "TestClass", - name = "main", + "Example signature", + MethodMetadata( + "TestClass", + "main", ), - patternScanMethod = PatternScanMethod.Fuzzy(1), - compatiblePackages = listOf("com.example.examplePackage"), - description = "The main method of TestClass", - version = "1.0.0" + PatternScanMethod.Fuzzy(1), + listOf("com.example.examplePackage"), + "The main method of TestClass", + "1.0.0" ), - returnType = "V", - accessFlags = AccessFlags.PUBLIC or AccessFlags.STATIC, - methodParameters = listOf("[L"), - opcodes = listOf( + "V", + AccessFlags.PUBLIC or AccessFlags.STATIC, + listOf("[L"), + listOf( Opcode.SGET_OBJECT, null, // Testing unknown opcodes. Opcode.INVOKE_STATIC, // This is intentionally wrong to test the Fuzzy resolver.