1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-21 01:38:51 +00:00

fix: 修复一般错误

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
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 2016年9月14日 上午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) {