[core dynamodb googledatastore infinispan] Fixing pmd:UnnecessaryConstructor - Unnecessary constructor, squid:EmptyStatementUsageCheck - Empty statements should be removed

This commit is contained in:
Kirill Vlasov 2015-12-31 16:26:16 +05:00
Родитель 44d8cad0b2
Коммит b3dfd75831
5 изменённых файлов: 2 добавлений и 10 удалений

Просмотреть файл

@ -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 {
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 {
"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 {
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 {
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());