提交 9768188e 编写于 作者: A ayman abdelghany

Casting math operands before assignment

上级 3f0214a8
......@@ -15,13 +15,13 @@ public class Sleep {
Thread.sleep(num);
return;
case SEC:
Thread.sleep(num*1000);
Thread.sleep(num*1000L);
return;
case MIN:
Thread.sleep(num*60*1000);
Thread.sleep(num*60*1000L);
return;
case HOUR:
Thread.sleep(num*60*60*1000);
Thread.sleep(num*60*60*1000L);
return;
default:
logger.error("输入类型错误,应为MSEC,SEC,MIN,HOUR之一");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册