Skip to content

Commit

Permalink
reformat fix finalize() deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
wadoon committed Nov 23, 2024
1 parent cc91a9c commit 0eec2d4
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URI;
import java.nio.file.*;
import java.util.*;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.zip.ZipFile;

import de.uka.ilkd.key.java.Position;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.nio.charset.StandardCharsets;
import java.nio.file.*;
import java.util.*;
import java.util.function.Consumer;
Expand Down Expand Up @@ -54,9 +38,6 @@
import org.key_project.util.collection.Pair;
import org.key_project.util.java.IOUtil;

import org.antlr.runtime.MismatchedTokenException;
import org.key_project.util.reflection.ClassLoaderUtil;

import org.antlr.runtime.MismatchedTokenException;
import org.jspecify.annotations.Nullable;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,6 @@ public ProofStatus getStatus() {
return proofStatus;
}

@Override
protected void finalize() throws Throwable {
removeProofListener();
super.finalize();
}



// -------------------------------------------------------------------------
// inner classes
// -------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,6 @@ public void removeNotify() {
unregisterListener();
}

@Override
protected void finalize() {
dispose();
}

/**
* Dispose this SequentView.
* Before calling this method, the view should be removed from the UI.
Expand All @@ -257,12 +252,6 @@ public void dispose() {
printer = null;
} catch (Throwable e) {
mainWindow.notify(new GeneralFailureEvent(e.getMessage()));
} finally {
try {
super.finalize();
} catch (Throwable e) {
mainWindow.notify(new GeneralFailureEvent(e.getMessage()));
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,7 @@ public void setExpandOSSNodes(boolean expandOSSNodes) {
this.expandOSSNodes = expandOSSNodes;
}

@Override
protected void finalize() throws Throwable {
super.finalize();
protected void dispose() throws Throwable {
Config.DEFAULT.removeConfigChangeListener(configChangeListener);
NodeInfoVisualizer.removeListener(nodeInfoVisListener);
}
Expand Down

0 comments on commit 0eec2d4

Please sign in to comment.