Cast one of the operands of this multiplication operation to a long
This commit is contained in:
parent
6b6e4d36e8
commit
dc547f106c
7 changed files with 7 additions and 7 deletions
|
@ -88,7 +88,7 @@ public class JobLogService implements Serializable {
|
|||
}
|
||||
|
||||
public void deleteBefore(final int days) {
|
||||
final long oneday = 24 * 60 * 60 * 1000;
|
||||
final long oneday = (long) 24 * 60 * 60 * 1000;
|
||||
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 = 60 * 1000;// 1min
|
||||
public long csvFileTimestampMargin = (long) 60 * 1000;// 1min
|
||||
|
||||
public boolean ignoreDataStoreException = true;
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ public class SearchLogHelper {
|
|||
@Resource
|
||||
protected DynamicProperties systemProperties;
|
||||
|
||||
public long userCheckInterval = 5 * 60 * 1000;// 5 min
|
||||
public long userCheckInterval = (long) 5 * 60 * 1000;// 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 = 250 * 1024 * 1024; // 250MB
|
||||
public static final long DEFAULT_SIZE_MAX = (long) 250 * 1024 * 1024; // 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 = 5 * 60 * 1000; // 5min
|
||||
public long shutdownTimeout = (long) 5 * 60 * 1000; // 5min
|
||||
|
||||
public int screenShotPathCacheSize = 10;
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ public class CommandGenerator extends BaseScreenShotGenerator {
|
|||
|
||||
public List<String> commandList;
|
||||
|
||||
public long commandTimeout = 10 * 1000;// 10sec
|
||||
public long commandTimeout = (long) 10 * 1000;// 10sec
|
||||
|
||||
public File baseDir;
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ public class QueryResponseList implements List<Map<String, Object>> {
|
|||
existNextPage = start < (long) (allPageCount - 1) * (long) pageSize;
|
||||
currentPageNumber = start / pageSize + 1;
|
||||
currentStartRecordNumber = allRecordCount != 0 ? (currentPageNumber - 1) * pageSize + 1 : 0;
|
||||
currentEndRecordNumber = currentPageNumber * pageSize;
|
||||
currentEndRecordNumber = (long) currentPageNumber * pageSize;
|
||||
currentEndRecordNumber = allRecordCount < currentEndRecordNumber ? allRecordCount : currentEndRecordNumber;
|
||||
|
||||
final int pageRangeSize = 5;
|
||||
|
|
Loading…
Add table
Reference in a new issue