From 635d23c9b7de3c57c490c1a67ba863895b75a264 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 27 Oct 2024 15:44:35 +0100 Subject: [PATCH] add notice regarding using immutable references --- docs/2_2_1_fingerprinting.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/2_2_1_fingerprinting.md b/docs/2_2_1_fingerprinting.md index eae39b50..1cbfe7b3 100644 --- a/docs/2_2_1_fingerprinting.md +++ b/docs/2_2_1_fingerprinting.md @@ -233,6 +233,11 @@ The `classDef` and `method` properties can be used to make changes to the class They are lazy properties, so they are only computed and will effectively replace the original method or class definition when accessed. +> [!TIP] +> If only read-only access to the class or method is needed, +> the `originalClassDef` and `originalMethod` properties can be used, +> to avoid making a mutable copy of the class or method. + ## 🏹 Manually matching fingerprints By default, a fingerprint is matched automatically against all classes when the `match` property is accessed.