Skip to content

Commit

Permalink
Make private static classes final
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 11, 2023
1 parent eac1475 commit 3ab6dc9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class StrictLazyDynaBeanPointerFactory implements NodePointerFactory {
/**
* Pointer implementation.
*/
private static class StrictLazyDynaBeanPointer extends DynaBeanPointer {
private static final class StrictLazyDynaBeanPointer extends DynaBeanPointer {
private static final long serialVersionUID = 1L;

private final LazyDynaBean lazyDynaBean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class KeyManagerUtils {
/**
* Adapt KeyManager to implement ExtendedKeyManager.
*/
private static class SingleNodeExtendedKeyManager implements
private static final class SingleNodeExtendedKeyManager implements
ExtendedKeyManager {
private final KeyManager delegate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private void doTest(final String xp, final String expected)

}

private static class JXPathVariablesResolver implements Variables
private static final class JXPathVariablesResolver implements Variables
{

private static final long serialVersionUID = -1106360826446119597L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public void testBCNodeSetHack() {
Boolean.TRUE);
}

private static class Context implements ExpressionContext {
private static final class Context implements ExpressionContext {
private final Object object;

public Context(final Object object) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void executeTestMethodUnderClassLoader(final ClassLoader cl, final Strin
* whether the parent can/has loaded it.
*
*/
private static class TestClassLoader extends ClassLoader {
private static final class TestClassLoader extends ClassLoader {
private Class testCaseClass = null;

public TestClassLoader(final ClassLoader classLoader) {
Expand Down

0 comments on commit 3ab6dc9

Please sign in to comment.