When a static using is discovered, it is added to JavaConversionOptions.StaticUsingEnumNames. However, after processing a file, this value is never cleared. As such, static usings continue to accumulate, and each successive file contains more and more static usings that do not apply do it.
Recommended fix is to wrap JavaToCSharpConverter.ConvertText in a try/finally so it is not the caller's responsibility to clean something up they weren't responsible for modifying
When a static using is discovered, it is added to
JavaConversionOptions.StaticUsingEnumNames. However, after processing a file, this value is never cleared. As such, static usings continue to accumulate, and each successive file contains more and more static usings that do not apply do it.Recommended fix is to wrap
JavaToCSharpConverter.ConvertTextin atry/finallyso it is not the caller's responsibility to clean something up they weren't responsible for modifying