java.awt.Graphics: not a candidate for AutoCloseable?

assembling signals assembling.signals at yandex.ru
Tue Feb 22 20:00:01 UTC 2011


Hello, community!

Is java.awt.Graphics not a candidate for AutoCloseable?

In most cases, a Graphics object has to be dispose()'d at the end.
Couldn't it be extended with close() which would be a delegate to dispose()?

Best regards,
Ivan G Shevchenko



More information about the core-libs-dev mailing list