Cleanup: use isEmpty instead of size/length
This commit is contained in:
committed by
Laurent Clouet
parent
3497ff7333
commit
4965617784
@@ -283,7 +283,7 @@ public class Client {
|
||||
}
|
||||
|
||||
// not running but maybe still sending frame
|
||||
while (this.jobsToValidate.size() > 0) {
|
||||
while (this.jobsToValidate.isEmpty() == false) {
|
||||
try {
|
||||
Thread.sleep(2300); // wait a little bit
|
||||
}
|
||||
@@ -403,7 +403,7 @@ public class Client {
|
||||
String args = "";
|
||||
if (job_to_reset_ != null) {
|
||||
args = "?frame=" + job_to_reset_.getFrameNumber() + "&job=" + job_to_reset_.getId() + "&render_time=" + job_to_reset_.getRenderDuration();
|
||||
if (job_to_reset_.getExtras() != null && job_to_reset_.getExtras().length() > 0) {
|
||||
if (job_to_reset_.getExtras() != null && job_to_reset_.getExtras().isEmpty() == false) {
|
||||
args += "&extras=" + job_to_reset_.getExtras();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user