Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void doSomething() {
- if (!expensiveCall()) {
- println("problem 1");
- return;
- }
- Object input = expensiveGet();
- if (!expensiveCall2(input)) {
- println("problem 2");
- return;
- }
- Object otherInput = expensiveGet2();
- otherInput.setOption1();
- otherInput.setExpensiveOption2();
- if (!expensiveCall3(otherInput)) {
- //problem
- return;
- }
- println("Everything OK!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement