Resolver errores de checkstyle
All checks were successful
PR Builder / Build-PR (pull_request) Successful in 2m36s

This commit is contained in:
jesus.pelaez 2024-11-14 04:15:29 -04:00
parent 1c638ff27b
commit 5ba432079b
2 changed files with 4 additions and 2 deletions

View File

@ -156,7 +156,8 @@ public class RequestEmployeeView extends Div implements HasUrlParameter<String>
if (vacationPreviousRequests != null && !vacationPreviousRequests.isEmpty()) { if (vacationPreviousRequests != null && !vacationPreviousRequests.isEmpty()) {
utilizedVacationPreviousDays = vacationPreviousRequests.getLast().getDaysBalance(); utilizedVacationPreviousDays = vacationPreviousRequests.getLast().getDaysBalance();
} }
double totalVacationPreviousDays = vacationDays.getFirst() - (vacationDays.getFirst() - utilizedVacationPreviousDays); double totalVacationPreviousDays = vacationDays.getFirst()
- (vacationDays.getFirst() - utilizedVacationPreviousDays);
double utilizedFixedAndMovableHolidays = calculateHolidayUtilizedDays(currentYear); double utilizedFixedAndMovableHolidays = calculateHolidayUtilizedDays(currentYear);
double utilizedPersonalDays = calculatePersonalDaysUtilized(isMale, currentYear); double utilizedPersonalDays = calculatePersonalDaysUtilized(isMale, currentYear);

View File

@ -181,7 +181,8 @@ public class RequestsListView extends Main {
if (vacationPreviousRequests != null && !vacationPreviousRequests.isEmpty()) { if (vacationPreviousRequests != null && !vacationPreviousRequests.isEmpty()) {
utilizedVacationPreviousDays = vacationPreviousRequests.getLast().getDaysBalance(); utilizedVacationPreviousDays = vacationPreviousRequests.getLast().getDaysBalance();
} }
double totalVacationPreviousDays = vacationDays.getFirst() - (vacationDays.getFirst() - utilizedVacationPreviousDays); double totalVacationPreviousDays = vacationDays.getFirst()
- (vacationDays.getFirst() - utilizedVacationPreviousDays);
double totalUtilized = calculateTotalUtilized(employeeRequests); double totalUtilized = calculateTotalUtilized(employeeRequests);