Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INTERNAL: Make final class which is not inherit #823

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/net/spy/memcached/ArcusReplNodeAddress.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import net.spy.memcached.compat.log.Logger;
import net.spy.memcached.compat.log.LoggerFactory;

public class ArcusReplNodeAddress extends InetSocketAddress {
public final class ArcusReplNodeAddress extends InetSocketAddress {

private static final long serialVersionUID = -1555690881482453720L;
private static final Logger arcusLogger = LoggerFactory.getLogger(ArcusReplNodeAddress.class);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/spy/memcached/CacheManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* memcached server in the remote machine. It also changes the
* previous ketama node
*/
public class CacheManager extends SpyThread implements Watcher,
public final class CacheManager extends SpyThread implements Watcher,
CacheMonitor.CacheMonitorListener, MigrationMonitor.MigrationMonitorListener {
private static final String ARCUS_BASE_CACHE_LIST_ZPATH = "/arcus/cache_list/";

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/spy/memcached/CacheMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* CacheMonitor monitors the changes of the cache server list
* in the ZooKeeper node{@code (/arcus/cache_list/<service_code>)}.
*/
public class CacheMonitor extends SpyObject implements Watcher,
public final class CacheMonitor extends SpyObject implements Watcher,
ChildrenCallback {

private final ZooKeeper zk;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/spy/memcached/MemcachedNodeROImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import net.spy.memcached.ops.Operation;

public class MemcachedNodeROImpl implements MemcachedNode {
public final class MemcachedNodeROImpl implements MemcachedNode {

private final MemcachedNode root;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/* ENABLE_REPLICATION if */
package net.spy.memcached;

public class MemcachedReplicaGroupImpl extends MemcachedReplicaGroup {
public final class MemcachedReplicaGroupImpl extends MemcachedReplicaGroup {

public MemcachedReplicaGroupImpl(final MemcachedNode node) {
super(getGroupNameFromNode(node));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/* ENABLE_REPLICATION if */
package net.spy.memcached;

public class MemcachedReplicaGroupROImpl extends MemcachedReplicaGroup {
public final class MemcachedReplicaGroupROImpl extends MemcachedReplicaGroup {
public MemcachedReplicaGroupROImpl(final MemcachedReplicaGroup group) {
super(group.getGroupName());
this.masterNode = new MemcachedNodeROImpl(group.getMasterNode());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/spy/memcached/MigrationMonitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* MigrationMonitor monitors the changes of the cloud_stat
* in the ZooKeeper node{@code (/arcus/cloud_stat/<service_code>)}.
*/
public class MigrationMonitor extends SpyObject implements Watcher {
public final class MigrationMonitor extends SpyObject implements Watcher {

private final ZooKeeper zk;

Expand Down