checkstyle comments

This commit is contained in:
Shailesh Gupta 2023-03-01 22:44:19 +05:30
parent b2c2605c57
commit a5c1e3cd2e
1 changed files with 4 additions and 2 deletions

View File

@ -863,8 +863,10 @@ public class EntityGroupFSTimelineStore extends CompositeService
public int compare(FileStatus o1, FileStatus o2) {
String[] ts1 = o1.getPath().getName().split("_");
String[] ts2 = o2.getPath().getName().split("_");
if (StringUtils.isNumeric(ts1[ts1.length - 1]) && StringUtils.isNumeric(ts2[ts2.length - 1])) {
return (Integer.parseInt(ts1[ts1.length - 1]) - Integer.parseInt(ts2[ts2.length - 1]));
if (StringUtils.isNumeric(ts1[ts1.length - 1])
&& StringUtils.isNumeric(ts2[ts2.length - 1])) {
return (Integer.parseInt(ts1[ts1.length - 1])
- Integer.parseInt(ts2[ts2.length - 1]));
} else {
return o1.getPath().getName().compareTo(o2.getPath().getName());
}