From e9a879c10b9e4609254403d2d504ef10c9220748 Mon Sep 17 00:00:00 2001 From: Jonathan Pobst Date: Mon, 7 Aug 2023 13:40:43 -0500 Subject: [PATCH] [generator] Prevent BG8A08 warning when using `ns-replace`. --- src/Java.Interop.Tools.Generator/Metadata/FixupXmlDocument.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Java.Interop.Tools.Generator/Metadata/FixupXmlDocument.cs b/src/Java.Interop.Tools.Generator/Metadata/FixupXmlDocument.cs index da3214789..65a97508a 100644 --- a/src/Java.Interop.Tools.Generator/Metadata/FixupXmlDocument.cs +++ b/src/Java.Interop.Tools.Generator/Metadata/FixupXmlDocument.cs @@ -41,6 +41,10 @@ public void Apply (ApiXmlDocument apiDocument, string apiLevelString, int produc if (!ShouldApply (metaitem, apiDocument)) continue; + // Namespace replacements are handled elsewhere + if (metaitem.Name.LocalName == "ns-replace") + continue; + var path = metaitem.XGetAttribute ("path"); if (path != prev_path)