Skip to content

Commit 8adfc39

Browse files
committed
enhance the code
1 parent f463adc commit 8adfc39

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/main/java/org/teasoft/beex/android/SQLiteTransaction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void begin() {
4848

4949
@Override
5050
public void commit() {
51-
Logger.info("[Bee] SQLiteTransaction(android) commit. ");
51+
Logger.info("[Bee] SQLiteTransaction(android) commit.");
5252
if (!isBegin) throw new BeeSQLException("The SQLiteTransaction did not to begin!");
5353
try {
5454
db.setTransactionSuccessful();

src/main/java/org/teasoft/beex/autogen/DdlViaExcel.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public class DdlViaExcel {
4343

4444
private static final String CREATE_TABLE = "CREATE TABLE ";
4545
private static String LINE_SEPARATOR = System.getProperty("line.separator"); // 换行符
46-
// private static PreparedSql preparedSql = BeeFactoryHelper.getPreparedSql();
47-
46+
4847
/**
4948
* create table via sheet of excel.
5049
* @param excelFullPath excel FullPath

src/main/java/org/teasoft/beex/cache/redis/BeeExtRedisCache.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
package org.teasoft.beex.cache.redis;
1919

20-
import java.util.Random;
20+
import java.util.concurrent.ThreadLocalRandom;
2121

2222
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
2323
import org.teasoft.bee.osql.Serializer;
@@ -47,7 +47,7 @@ public class BeeExtRedisCache extends DefaultBeeExtCache {
4747
private static final String FIELD = "Bee";
4848
private static final byte[] FIELD_BYTES = FIELD.getBytes();
4949

50-
private final Random random=new Random();
50+
private final ThreadLocalRandom random=ThreadLocalRandom.current();
5151
private int max=0;
5252
private int min=0;
5353
private int baseNum=0;

0 commit comments

Comments
 (0)