From 4a9d982f0a0451a0f27b710d6279f05542ff6ad7 Mon Sep 17 00:00:00 2001 From: sschr15 Date: Sat, 17 Aug 2024 22:46:56 -0500 Subject: [PATCH] Remove final from Statement subtypes --- .../modules/decompiler/stats/BasicBlockStatement.java | 2 +- .../decompiler/modules/decompiler/stats/CatchAllStatement.java | 2 +- .../decompiler/modules/decompiler/stats/CatchStatement.java | 2 +- .../java/decompiler/modules/decompiler/stats/DoStatement.java | 2 +- .../decompiler/modules/decompiler/stats/DummyExitStatement.java | 2 +- .../decompiler/modules/decompiler/stats/GeneralStatement.java | 2 +- .../java/decompiler/modules/decompiler/stats/IfStatement.java | 2 +- .../java/decompiler/modules/decompiler/stats/RootStatement.java | 2 +- .../decompiler/modules/decompiler/stats/SequenceStatement.java | 2 +- .../decompiler/modules/decompiler/stats/SwitchStatement.java | 2 +- .../modules/decompiler/stats/SynchronizedStatement.java | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/BasicBlockStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/BasicBlockStatement.java index 393af9fa14..c9b5eaaaca 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/BasicBlockStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/BasicBlockStatement.java @@ -18,7 +18,7 @@ import java.util.ArrayList; import java.util.List; -public final class BasicBlockStatement extends Statement { +public class BasicBlockStatement extends Statement { // ***************************************************************************** // private fields diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/CatchAllStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/CatchAllStatement.java index daab8f1e9e..fe88d44659 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/CatchAllStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/CatchAllStatement.java @@ -17,7 +17,7 @@ import java.util.List; import java.util.Set; -public final class CatchAllStatement extends Statement { +public class CatchAllStatement extends Statement { private Statement handler; diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/CatchStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/CatchStatement.java index de600fb444..4b4e98a0bb 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/CatchStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/CatchStatement.java @@ -21,7 +21,7 @@ import java.util.List; import java.util.Set; -public final class CatchStatement extends Statement { +public class CatchStatement extends Statement { private final List> exctstrings = new ArrayList<>(); private final List vars = new ArrayList<>(); private final List resources = new ArrayList<>(); diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/DoStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/DoStatement.java index 8f2edd65cb..45f7c714b0 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/DoStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/DoStatement.java @@ -14,7 +14,7 @@ import java.util.List; // Loop statement -public final class DoStatement extends Statement { +public class DoStatement extends Statement { public enum Type { INFINITE, DO_WHILE, WHILE, FOR, FOR_EACH } diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/DummyExitStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/DummyExitStatement.java index 377559466c..b1c9165f9a 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/DummyExitStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/DummyExitStatement.java @@ -3,7 +3,7 @@ import java.util.BitSet; -public final class DummyExitStatement extends Statement { +public class DummyExitStatement extends Statement { public BitSet bytecode = null; // offsets of bytecode instructions mapped to dummy exit public DummyExitStatement() { diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/GeneralStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/GeneralStatement.java index 641f257354..631ed39349 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/GeneralStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/GeneralStatement.java @@ -8,7 +8,7 @@ import java.util.Set; -public final class GeneralStatement extends Statement { +public class GeneralStatement extends Statement { private boolean placeholder; // ***************************************************************************** diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/IfStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/IfStatement.java index 9f2314196a..9eeb5e3c85 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/IfStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/IfStatement.java @@ -21,7 +21,7 @@ import java.util.List; -public final class IfStatement extends Statement { +public class IfStatement extends Statement { public static final int IFTYPE_IF = 0; public static final int IFTYPE_IFELSE = 1; diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/RootStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/RootStatement.java index fe7f33a62f..5cb8996039 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/RootStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/RootStatement.java @@ -10,7 +10,7 @@ import java.util.LinkedHashSet; import java.util.Set; -public final class RootStatement extends Statement { +public class RootStatement extends Statement { private final DummyExitStatement dummyExit; public final StructMethod mt; public Set commentLines = null; diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SequenceStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SequenceStatement.java index 4fd2d23819..b93bcc343d 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SequenceStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SequenceStatement.java @@ -10,7 +10,7 @@ import java.util.List; -public final class SequenceStatement extends Statement { +public class SequenceStatement extends Statement { // ***************************************************************************** diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SwitchStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SwitchStatement.java index 1fe72d8fcd..1e8662d455 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SwitchStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SwitchStatement.java @@ -19,7 +19,7 @@ import java.util.*; import java.util.stream.Collectors; -public final class SwitchStatement extends Statement { +public class SwitchStatement extends Statement { // ***************************************************************************** // private fields diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SynchronizedStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SynchronizedStatement.java index 0e7fef4f8a..056de8e7e3 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SynchronizedStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SynchronizedStatement.java @@ -13,7 +13,7 @@ import java.util.List; -public final class SynchronizedStatement extends Statement { +public class SynchronizedStatement extends Statement { private Statement body;