Skip to content
Snippets Groups Projects
Commit b3dfd758 authored by Kirill Vlasov's avatar Kirill Vlasov
Browse files

[core dynamodb googledatastore infinispan] Fixing pmd:UnnecessaryConstructor -...

[core dynamodb googledatastore infinispan] Fixing pmd:UnnecessaryConstructor - Unnecessary constructor, squid:EmptyStatementUsageCheck - Empty statements should be removed
parent 44d8cad0
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ public class StringByteIterator extends ByteIterator { ...@@ -62,7 +62,7 @@ public class StringByteIterator extends ByteIterator {
HashMap<String, String> ret = new HashMap<String,String>(); HashMap<String, String> ret = new HashMap<String,String>();
for(String s: m.keySet()) { for(String s: m.keySet()) {
ret.put(s, m.get(s).toString());; ret.put(s, m.get(s).toString());
} }
return ret; return ret;
} }
......
...@@ -174,7 +174,7 @@ public class Measurements { ...@@ -174,7 +174,7 @@ public class Measurements {
ThreadLocal<StartTimeHolder> tlIntendedStartTime = new ThreadLocal<Measurements.StartTimeHolder>() { ThreadLocal<StartTimeHolder> tlIntendedStartTime = new ThreadLocal<Measurements.StartTimeHolder>() {
protected StartTimeHolder initialValue() { protected StartTimeHolder initialValue() {
return new StartTimeHolder(); return new StartTimeHolder();
}; }
}; };
public void setIntendedStartTimeNs(long time) { public void setIntendedStartTimeNs(long time) {
......
...@@ -87,8 +87,6 @@ public class DynamoDBClient extends DB { ...@@ -87,8 +87,6 @@ public class DynamoDBClient extends DB {
"An error occurred on the client."); "An error occurred on the client.");
private static final String DEFAULT_HASH_KEY_VALUE = "YCSB_0"; private static final String DEFAULT_HASH_KEY_VALUE = "YCSB_0";
public DynamoDBClient() {}
/** /**
* Initialize any state for this DB. Called once per DB instance; there is * Initialize any state for this DB. Called once per DB instance; there is
* one DB instance per client thread. * one DB instance per client thread.
......
...@@ -83,8 +83,6 @@ public class GoogleDatastoreClient extends DB { ...@@ -83,8 +83,6 @@ public class GoogleDatastoreClient extends DB {
private Datastore datastore = null; private Datastore datastore = null;
public GoogleDatastoreClient() {}
/** /**
* Initialize any state for this DB. Called once per DB instance; there is * Initialize any state for this DB. Called once per DB instance; there is
* one DB instance per client thread. * one DB instance per client thread.
......
...@@ -47,10 +47,6 @@ public class InfinispanRemoteClient extends DB { ...@@ -47,10 +47,6 @@ public class InfinispanRemoteClient extends DB {
private static final Log logger = LogFactory.getLog(InfinispanRemoteClient.class); private static final Log logger = LogFactory.getLog(InfinispanRemoteClient.class);
public InfinispanRemoteClient() {
}
@Override @Override
public void init() throws DBException { public void init() throws DBException {
remoteIspnManager = RemoteCacheManagerHolder.getInstance(getProperties()); remoteIspnManager = RemoteCacheManagerHolder.getInstance(getProperties());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment