Skip to content

Commit c3c840a

Browse files
committed
Make private class final
1 parent 30735e6 commit c3c840a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/org/apache/bcel/verifier/statics/Pass3aVerifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public final class Pass3aVerifier extends PassVerifier {
113113
/**
114114
* This visitor class does the actual checking for the instruction operand's constraints.
115115
*/
116-
private class InstOperandConstraintVisitor extends org.apache.bcel.generic.EmptyVisitor {
116+
private final class InstOperandConstraintVisitor extends org.apache.bcel.generic.EmptyVisitor {
117117
/** The ConstantPoolGen instance this Visitor operates on. */
118118
private final ConstantPoolGen constantPoolGen;
119119

src/main/java/org/apache/bcel/verifier/structurals/ControlFlowGraph.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class ControlFlowGraph {
4343
/**
4444
* Objects of this class represent a node in a ControlFlowGraph. These nodes are instructions, not basic blocks.
4545
*/
46-
private class InstructionContextImpl implements InstructionContext {
46+
private final class InstructionContextImpl implements InstructionContext {
4747

4848
/**
4949
* The TAG field is here for external temporary flagging, such as graph coloring.

src/main/java/org/apache/bcel/verifier/structurals/Subroutines.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private enum ColourConstants {
6464
/**
6565
* This inner class implements the Subroutine interface.
6666
*/
67-
private class SubroutineImpl implements Subroutine {
67+
private final class SubroutineImpl implements Subroutine {
6868
/**
6969
* UNSET, a symbol for an uninitialized localVariable field. This is used for the "top-level" Subroutine; i.e. no
7070
* subroutine.

0 commit comments

Comments
 (0)