From 0c7fb539fbcae9bd51fbff9f15fde8a30cc5ba4a Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 23 Dec 2015 13:07:28 +0000
Subject: [PATCH] Run UCDetector on package org.opends.server.backends.pluggable
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/BackendStat.java | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/BackendStat.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/BackendStat.java
index 8169182..77afc72 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/BackendStat.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/BackendStat.java
@@ -102,7 +102,7 @@
* Collects all necessary interaction interfaces with either a Backend using TreeNames
* or a storage using Trees.
*/
- interface TreeKeyValue
+ private interface TreeKeyValue
{
/**
* Returns a key given a string representation of it.
@@ -139,11 +139,11 @@
}
/** Stays at the storage level when cursoring Trees. */
- static class StorageTreeKeyValue implements TreeKeyValue
+ private static class StorageTreeKeyValue implements TreeKeyValue
{
- private TreeName treeName;
+ private final TreeName treeName;
- public StorageTreeKeyValue(TreeName treeName)
+ private StorageTreeKeyValue(TreeName treeName)
{
this.treeName = treeName;
}
@@ -174,12 +174,12 @@
}
/** Delegate key semantics to the backend. */
- static class BackendTreeKeyValue implements TreeKeyValue
+ private static class BackendTreeKeyValue implements TreeKeyValue
{
- private TreeName name;
- private Tree tree;
+ private final TreeName name;
+ private final Tree tree;
- public BackendTreeKeyValue(Tree tree)
+ private BackendTreeKeyValue(Tree tree)
{
this.tree = tree;
this.name = tree.getName();
@@ -215,13 +215,13 @@
}
/** Statistics collector. */
- class TreeStats
+ private class TreeStats
{
- final long count;
- final long totalKeySize;
- final long totalDataSize;
+ private final long count;
+ private final long totalKeySize;
+ private final long totalDataSize;
- TreeStats(long count, long tks, long tds)
+ private TreeStats(long count, long tks, long tds)
{
this.count = count;
this.totalKeySize = tks;
--
Gitblit v1.10.0