summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Pablo Gamito <pablogamito@google.com> 2024-07-01 16:10:14 +0000
committer Pablo Gamito <pablogamito@google.com> 2024-07-01 16:10:55 +0000
commit941547d48d7cac38a17bc9a979a42e9d6fc392e0 (patch)
tree06a3a42a708eb35341f5b347b96693d9a9eb5b42
parent06f2a34f32428ce37f60fc17008cd61cda23643f (diff)
Add lint rule to make make sure we update the ProtoLogTool when updating the ProtoLog class name
Flag: NONE lint rule comments only Test: n/a Change-Id: I6b03ce62a445f4661c78e46a2f89d8b117fb9c41
-rw-r--r--core/java/com/android/internal/protolog/ProtoLog.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/com/android/internal/protolog/ProtoLog.java b/core/java/com/android/internal/protolog/ProtoLog.java
index 13014bfd7f3b..0118c056d682 100644
--- a/core/java/com/android/internal/protolog/ProtoLog.java
+++ b/core/java/com/android/internal/protolog/ProtoLog.java
@@ -39,7 +39,9 @@ import com.android.internal.protolog.common.LogLevel;
* Methods in this class are stubs, that are replaced by optimised versions by the ProtoLogTool
* during build.
*/
+// LINT.IfChange
public class ProtoLog {
+// LINT.ThenChange(frameworks/base/tools/protologtool/src/com/android/protolog/tool/ProtoLogTool.kt)
// Needs to be set directly otherwise the protologtool tries to transform the method call
public static boolean REQUIRE_PROTOLOGTOOL = true;