Tabnine Logo
Object.finalize
Code IndexAdd Tabnine to your IDE (free)

How to use
finalize
method
in
java.lang.Object

Best Java code snippets using java.lang.Object.finalize (Showing top 20 results out of 11,916)

origin: libgdx/libgdx

@Override
protected void finalize () throws Throwable {
  Log.i(TAG, "service finalized");
  super.finalize();
}
origin: libgdx/libgdx

@Override
protected void finalize () throws Throwable {
  Log.i(TAG, "service finalized");
  super.finalize();
}
origin: apache/incubator-dubbo

@Override
protected void finalize() throws Throwable {
  try {
    super.finalize();
  } finally {
    // This object is going to be GCed and it is assumed the ship has sailed to do a proper shutdown. If
    // we have not yet shutdown then we want to make sure we decrement the active instance count.
    if (WORKER_STATE_UPDATER.getAndSet(this, WORKER_STATE_SHUTDOWN) != WORKER_STATE_SHUTDOWN) {
      INSTANCE_COUNTER.decrementAndGet();
    }
  }
}
origin: apache/incubator-dubbo

@Override
protected void finalize() throws Throwable {
  try {
    super.finalize();
  } finally {
    // This object is going to be GCed and it is assumed the ship has sailed to do a proper shutdown. If
    // we have not yet shutdown then we want to make sure we decrement the active instance count.
    if (WORKER_STATE_UPDATER.getAndSet(this, WORKER_STATE_SHUTDOWN) != WORKER_STATE_SHUTDOWN) {
      INSTANCE_COUNTER.decrementAndGet();
    }
  }
}
origin: netty/netty

@Override
protected void finalize() throws Throwable {
  try {
    super.finalize();
  } finally {
    free();
  }
}
origin: netty/netty

@Override
protected void finalize() throws Throwable {
  try {
    super.finalize();
  } finally {
    // This object is going to be GCed and it is assumed the ship has sailed to do a proper shutdown. If
    // we have not yet shutdown then we want to make sure we decrement the active instance count.
    if (WORKER_STATE_UPDATER.getAndSet(this, WORKER_STATE_SHUTDOWN) != WORKER_STATE_SHUTDOWN) {
      INSTANCE_COUNTER.decrementAndGet();
    }
  }
}
origin: libgdx/libgdx

  @Override
  protected void finalize() throws Throwable {
    if (!destroyed && Bullet.enableLogging)
      Gdx.app.error("Bullet", "The "+className+" class does not override the finalize method.");
    super.finalize();
  }
}
origin: libgdx/libgdx

@Override
protected void finalize() throws Throwable {
  try {
    if (mGLThread != null) {
      // GLThread may still be running if this view was never
      // attached to a window.
      mGLThread.requestExitAndWait();
    }
  } finally {
    super.finalize();
  }
}
origin: libgdx/libgdx

  @Override
  protected void finalize() throws Throwable {
    if (!destroyed && Bullet.enableLogging)
      Gdx.app.error("Bullet", "The "+className+" class does not override the finalize method.");
    super.finalize();
  }
}
origin: libgdx/libgdx

@Override
protected void finalize() throws Throwable {
  try {
    if (mGLThread != null) {
      // GLThread may still be running if this view was never
      // attached to a window.
      mGLThread.requestExitAndWait();
    }
  } finally {
    super.finalize();
  }
}
origin: apache/incubator-dubbo

  @Override
  protected void finalize() throws Throwable {
    super.finalize();
    if (!ReferenceConfig.this.destroyed) {
      logger.warn("ReferenceConfig(" + url + ") is not DESTROYED when FINALIZE");
      /* don't destroy for now
      try {
        ReferenceConfig.this.destroy();
      } catch (Throwable t) {
          logger.warn("Unexpected err when destroy invoker of ReferenceConfig(" + url + ") in finalize method!", t);
      }
      */
    }
  }
};
origin: apache/incubator-dubbo

  @Override
  protected void finalize() throws Throwable {
    super.finalize();
    if (!ReferenceConfig.this.destroyed) {
      logger.warn("ReferenceConfig(" + url + ") is not DESTROYED when FINALIZE");
      /* don't destroy for now
      try {
        ReferenceConfig.this.destroy();
      } catch (Throwable t) {
          logger.warn("Unexpected err when destroy invoker of ReferenceConfig(" + url + ") in finalize method!", t);
      }
      */
    }
  }
};
origin: commons-io/commons-io

/**
 * Ensures that the stream is closed before it gets garbage-collected.
 * As mentioned in {@link #close()}, this is a no-op if the stream has
 * already been closed.
 * @throws Throwable if an error occurs
 */
@Override
protected void finalize() throws Throwable {
  close();
  super.finalize();
}
origin: jenkinsci/jenkins

@Override
protected void finalize() throws Throwable {
  super.finalize();
  dispose();
}
origin: eclipse-vertx/vert.x

@Override
protected void finalize() throws Throwable {
 // Make sure this gets cleaned up if there are no more references to it
 // so as not to leave connections and resources dangling until the system is shutdown
 // which could make the JVM run out of file handles.
 close();
 super.finalize();
}
origin: eclipse-vertx/vert.x

@Override
protected void finalize() throws Throwable {
 // Make sure this gets cleaned up if there are no more references to it
 // so as not to leave connections and resources dangling until the system is shutdown
 // which could make the JVM run out of file handles.
 close(ar -> {});
 super.finalize();
}
origin: eclipse-vertx/vert.x

@Override
protected void finalize() throws Throwable {
 // Make sure this gets cleaned up if there are no more references to it
 // so as not to leave connections and resources dangling until the system is shutdown
 // which could make the JVM run out of file handles.
 close();
 super.finalize();
}
origin: eclipse-vertx/vert.x

 @Override
 protected void finalize() throws Throwable {
  // Make sure this gets cleaned up if there are no more references to it
  // so as not to leave connections and resources dangling until the system is shutdown
  // which could make the JVM run out of file handles.
  close();
  super.finalize();
 }
}
origin: eclipse-vertx/vert.x

@Override
protected void finalize() throws Throwable {
 close();
 super.finalize();
}
origin: netty/netty

@Override
protected final void finalize() throws Throwable {
  try {
    super.finalize();
  } finally {
    destroyPoolSubPages(smallSubpagePools);
    destroyPoolSubPages(tinySubpagePools);
    destroyPoolChunkLists(qInit, q000, q025, q050, q075, q100);
  }
}
java.langObjectfinalize

Popular methods of Object

  • getClass
  • toString
  • equals
  • hashCode
  • wait
  • notifyAll
  • clone
  • <init>
  • notify

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • String (java.lang)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Reference (javax.naming)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now