Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate com.google.gwt.dev.util.Util for removal #10030

Open
Tracked by #10029
niloc132 opened this issue Nov 2, 2024 · 0 comments
Open
Tracked by #10029

Deprecate com.google.gwt.dev.util.Util for removal #10030

niloc132 opened this issue Nov 2, 2024 · 0 comments

Comments

@niloc132
Copy link
Contributor

niloc132 commented Nov 2, 2024

This has a TODO indicating that at least stream functions should be replaced with guava. Other IO functions should also move to Guava or java.nio, and xml functions have no need to exist at all. This reduces the class to just a few calls, and can be moved to somewhere more appropriate in the codebase, and the class deleted.

There are other TODOs in calls to methods in this class that can be cleaned up by this work as well.

Replacing usage of this class will help with a few classes of issues

  • Masking IO errors by throwing NPE instead
  • Buffering output that need not be buffered (such as reading into a bytearray, or writing a bytearray/string to a file in one step).

Fully completing this work suggests raising the java release level to 11.

See also #10011.

@niloc132 niloc132 changed the title com.google.gwt.dev.util.Util - this has a TODO indicating that at least stream functions should be replaced with guava. Other IO functions should also move to Guava or java.nio, and xml functions have no need to exist at all. This reduces the class to just a few calls, and can be moved to somewhere more appropriate in the codebase, and the class deleted. Deprecate com.google.gwt.dev.util.Util for removal Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant