Skip to content
Snippets Groups Projects
Commit add31cc2 authored by zidane-itb's avatar zidane-itb
Browse files

remove throw exception in catch

parent 35521bdd
Branches
Tags
No related merge requests found
...@@ -8,11 +8,11 @@ import java.sql.Timestamp; ...@@ -8,11 +8,11 @@ import java.sql.Timestamp;
import java.util.List; import java.util.List;
import java.util.TimerTask; import java.util.TimerTask;
public class PaymentCompletorTask extends TimerTask { public class PaymentCompleterTask extends TimerTask {
private final Dao<Payment, Integer> paymentDao; private final Dao<Payment, Integer> paymentDao;
public PaymentCompletorTask(Dao<Payment, Integer> paymentDao) { public PaymentCompleterTask(Dao<Payment, Integer> paymentDao) {
this.paymentDao = paymentDao; this.paymentDao = paymentDao;
} }
...@@ -26,8 +26,7 @@ public class PaymentCompletorTask extends TimerTask { ...@@ -26,8 +26,7 @@ public class PaymentCompletorTask extends TimerTask {
p.setPaymentPaidTime(new Timestamp(System.currentTimeMillis())); p.setPaymentPaidTime(new Timestamp(System.currentTimeMillis()));
paymentDao.update(p); paymentDao.update(p);
} }
} catch (SQLException e) { } catch (SQLException ignored) {
throw new RuntimeException(e);
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment