MCPcopy Index your code
hub / github.com/apache/groovy / initialize

Method initialize

src/main/java/groovy/lang/ExpandoMetaClass.java:555–570  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

553 * {@inheritDoc}
554 */
555 @Override
556 public void initialize() {
557 try {
558 writeLock.lock();
559 if (!isInitialized()) {
560 super.initialize();
561 setInitialized(true);
562 this.initCalled = true;
563 }
564 } finally {
565 // downgrade to readlock before releasing just in case
566 readLock.lock();
567 writeLock.unlock();
568 readLock.unlock();
569 }
570 }
571
572 /**
573 * Checks if the metaclass is initialized.

Callers 3

setNewMopMethodsMethod · 0.95
addNewMopMethodsMethod · 0.95
metaClassMethod · 0.95

Calls 5

isInitializedMethod · 0.95
setInitializedMethod · 0.95
initializeMethod · 0.65
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected