From 376d079272b4139da99900420f911c72862824cb Mon Sep 17 00:00:00 2001 From: "Ray J. Greenwell" Date: Thu, 19 Feb 2026 15:08:31 -0800 Subject: [PATCH] Suppress this-escape warnings in some tools. --- .../main/java/com/threerings/presents/tools/GenServiceTask.java | 1 + .../src/main/java/com/threerings/presents/tools/cpp/CPPType.java | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/src/main/java/com/threerings/presents/tools/GenServiceTask.java b/tools/src/main/java/com/threerings/presents/tools/GenServiceTask.java index 760651429..664e557ef 100644 --- a/tools/src/main/java/com/threerings/presents/tools/GenServiceTask.java +++ b/tools/src/main/java/com/threerings/presents/tools/GenServiceTask.java @@ -53,6 +53,7 @@ public class GenServiceTask extends InvocationTask /** Contains all imports required for the parameters of the methods in this listener. */ public ImportSet imports = new ImportSet(); + @SuppressWarnings("this-escape") public ServiceListener (Class service, Class listener) { this.listener = listener; diff --git a/tools/src/main/java/com/threerings/presents/tools/cpp/CPPType.java b/tools/src/main/java/com/threerings/presents/tools/cpp/CPPType.java index d3353e091..30b0a9bc6 100644 --- a/tools/src/main/java/com/threerings/presents/tools/cpp/CPPType.java +++ b/tools/src/main/java/com/threerings/presents/tools/cpp/CPPType.java @@ -41,6 +41,7 @@ public class CPPType public final boolean primitive; + @SuppressWarnings("this-escape") public CPPType (Type javaType) { if (javaType instanceof ParameterizedType) {