You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by mm...@apache.org on 2021/08/23 19:04:13 UTC
[accumulo] branch main updated: Make variables final in Server and
Client Info
This is an automated email from the ASF dual-hosted git repository.
mmiller pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new 2987f37 Make variables final in Server and Client Info
2987f37 is described below
commit 2987f3762afbba81501ad52b5a188aa25bdd7ab8
Author: Mike Miller <mm...@apache.org>
AuthorDate: Mon Aug 23 15:02:07 2021 -0400
Make variables final in Server and Client Info
---
.../apache/accumulo/core/clientImpl/ClientInfoImpl.java | 4 ++--
.../main/java/org/apache/accumulo/server/ServerInfo.java | 16 ++++++++--------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/core/src/main/java/org/apache/accumulo/core/clientImpl/ClientInfoImpl.java b/core/src/main/java/org/apache/accumulo/core/clientImpl/ClientInfoImpl.java
index 816604c..5493b01 100644
--- a/core/src/main/java/org/apache/accumulo/core/clientImpl/ClientInfoImpl.java
+++ b/core/src/main/java/org/apache/accumulo/core/clientImpl/ClientInfoImpl.java
@@ -35,9 +35,9 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
public class ClientInfoImpl implements ClientInfo {
- private Properties properties;
+ private final Properties properties;
private AuthenticationToken token;
- private Configuration hadoopConf;
+ private final Configuration hadoopConf;
public ClientInfoImpl(Path propertiesFile) {
this(ClientInfoImpl.toProperties(propertiesFile));
diff --git a/server/base/src/main/java/org/apache/accumulo/server/ServerInfo.java b/server/base/src/main/java/org/apache/accumulo/server/ServerInfo.java
index c37e65b..4427c99 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/ServerInfo.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/ServerInfo.java
@@ -45,14 +45,14 @@ import org.apache.hadoop.fs.Path;
public class ServerInfo implements ClientInfo {
- private SiteConfiguration siteConfig;
- private Configuration hadoopConf;
- private String instanceID;
- private String instanceName;
- private String zooKeepers;
- private int zooKeepersSessionTimeOut;
- private VolumeManager volumeManager;
- private ZooCache zooCache;
+ private final SiteConfiguration siteConfig;
+ private final Configuration hadoopConf;
+ private final String instanceID;
+ private final String instanceName;
+ private final String zooKeepers;
+ private final int zooKeepersSessionTimeOut;
+ private final VolumeManager volumeManager;
+ private final ZooCache zooCache;
private final ServerDirs serverDirs;
ServerInfo(SiteConfiguration siteConfig, String instanceName, String zooKeepers,