fix: 修复一般错误

Signed-off-by: 502647092 <admin@yumc.pw>
merge/1/MERGE
502647092 2016-09-19 17:16:14 +08:00
parent 7c53c3f687
commit 4b5d9f84fb
4 changed files with 11 additions and 4 deletions

View File

@ -2,11 +2,14 @@ package pw.yumc.YumCore.kit;
/**
*
*
*
* @author
* @since 2016914 1:02:23
*/
public class StrKit {
private StrKit() {
}
/**
*
*

View File

@ -28,6 +28,9 @@ public class L10N {
load();
}
private L10N() {
}
/**
* ()
*

View File

@ -3,6 +3,7 @@ package pw.yumc.YumCore.sql.core;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
/**
@ -13,7 +14,7 @@ import java.util.Map.Entry;
*/
public class KeyValue {
private final HashMap<Object, Object> keyvalues = new HashMap<Object, Object>();
private final Map<Object, Object> keyvalues = new HashMap<>();
/**
*
@ -74,7 +75,7 @@ public class KeyValue {
* @return
*/
public Object[] getValues() {
final List<Object> keys = new ArrayList<Object>();
final List<Object> keys = new ArrayList<>();
for (final Entry<Object, Object> next : this.keyvalues.entrySet()) {
keys.add(next.getValue());
}

View File

@ -295,7 +295,7 @@ public class Statistics {
final long startTime = System.nanoTime();
final long timeSpent = (startTime - lastPoll) / 1000;
if (history.size() > 10) {
history.remove();
history.removeFirst();
}
final double ttps = 2.0E7D / (timeSpent == 0 ? 1 : timeSpent);
if (ttps <= 21.0D) {