Cast one of the operands of this multiplication operation to a long

This commit is contained in:
matsutani 2016-05-26 00:25:03 +09:00
parent 6b6e4d36e8
commit dc547f106c
7 changed files with 7 additions and 7 deletions

View file

@ -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);

View file

@ -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;

View file

@ -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;

View file

@ -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";

View file

@ -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;

View file

@ -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;

View file

@ -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;