MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / register

Method register

ij/src/main/java/ij/ImageJ.java:786–789  ·  view source on GitHub ↗

Adds the specified class to a Vector to keep it from being garbage collected, causing static fields to be reset.

(Class c)

Source from the content-addressed store, hash-verified

784 /** Adds the specified class to a Vector to keep it from being
785 garbage collected, causing static fields to be reset. */
786 public void register(Class c) {
787 if (!classes.contains(c))
788 classes.addElement(c);
789 }
790
791 /** Called by ImageJ when the user selects Quit. */
792 public void quit() {

Callers

nothing calls this directly

Calls 2

containsMethod · 0.45
addElementMethod · 0.45

Tested by

no test coverage detected