Hi! This patch replaces every x.getClass() (which is a hack and, besides, calls a native method) with the corresponding "if(x==null) throwNPE".
ChangeLog entries:
* java/util/logging/Handler.java:
(setFormatter(Formatter)): Directly check for null argument instead
of using getClass() hack.
(setErrorManager(ErrorManager)): Likewise.
(setLevel(Level)): Likewise.
* java/util/logging/LogManager.java:
(addPropertyChangeListener(PropertyChangeListener)): Likewise.
(getLogger(String)): Likewise.
* java/util/logging/MemoryHandler.java:
(setPushLevel(Level)): Likewise.
* java/util/logging/StreamHandler.java:
(setOutputStream(OutputStream)): Likewise.
* java/util/logging/Handler.java:
(setErrorManager(ErrorManager)): Document.
(addPropertyChangeListener(PropertyChangeListener)): Update the
comment.
(getLevelProperty(String, Level)): Don't call
getLogManager().getProperty() twice (reuse its value).
* java/util/logging/Logger.java:
(getLogger(String)): Fix a typo in the comment.
classpath-ivmai-24.diff
Description: Binary data
