change (long) to L
This commit is contained in:
parent
d05263270f
commit
41e2df0301
6 changed files with 6 additions and 6 deletions
|
@ -88,7 +88,7 @@ public class JobLogService implements Serializable {
|
|||
}
|
||||
|
||||
public void deleteBefore(final int days) {
|
||||
final long oneday = (long) 24 * 60 * 60 * 1000;
|
||||
final long oneday = 24 * 60 * 60 * 1000L;
|
||||
final long targetTime = ComponentUtil.getSystemHelper().getCurrentTimeAsLong() - days * oneday;
|
||||
jobLogBhv.queryDelete(cb -> {
|
||||
cb.query().setEndTime_LessThan(targetTime);
|
||||
|
|
|
@ -35,7 +35,7 @@ public class CsvListDataStoreImpl extends CsvDataStoreImpl {
|
|||
|
||||
public boolean deleteProcessedFile = true;
|
||||
|
||||
public long csvFileTimestampMargin = (long) 60 * 1000;// 1min
|
||||
public long csvFileTimestampMargin = 60 * 1000L;// 1min
|
||||
|
||||
public boolean ignoreDataStoreException = true;
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ public class SearchLogHelper {
|
|||
@Resource
|
||||
protected DynamicProperties systemProperties;
|
||||
|
||||
public long userCheckInterval = (long) 5 * 60 * 1000;// 5 min
|
||||
public long userCheckInterval = 5 * 60 * 1000L;// 5 min
|
||||
|
||||
public int userInfoCacheSize = 1000;
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ public class FessMultipartRequestHandler implements MultipartRequestHandler {
|
|||
// Definition
|
||||
// ==========
|
||||
private static final Logger logger = LoggerFactory.getLogger(FessMultipartRequestHandler.class);
|
||||
public static final long DEFAULT_SIZE_MAX = (long) 250 * 1024 * 1024; // 250MB
|
||||
public static final long DEFAULT_SIZE_MAX = 250 * 1024 * 1024L; // 250MB
|
||||
public static final int DEFAULT_SIZE_THRESHOLD = 256 * 1024; // 250KB
|
||||
protected static final String CONTEXT_TEMPDIR_KEY = "javax.servlet.context.tempdir";
|
||||
protected static final String JAVA_IO_TMPDIR_KEY = "java.io.tmpdir";
|
||||
|
|
|
@ -50,7 +50,7 @@ public class ScreenShotManager {
|
|||
|
||||
protected File baseDir;
|
||||
|
||||
public long shutdownTimeout = (long) 5 * 60 * 1000; // 5min
|
||||
public long shutdownTimeout = 5 * 60 * 1000L; // 5min
|
||||
|
||||
public int screenShotPathCacheSize = 10;
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public class CommandGenerator extends BaseScreenShotGenerator {
|
|||
|
||||
public List<String> commandList;
|
||||
|
||||
public long commandTimeout = (long) 10 * 1000;// 10sec
|
||||
public long commandTimeout = 10 * 1000L;// 10sec
|
||||
|
||||
public File baseDir;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue