Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void Method() {
- try {
- if (condition) {
- //something
- try {
- //log and do something
- } catch (SomeException e) {
- //log exception
- }
- Iterator itemsIterator = items.iterator();
- while (itemsIterator.hasNext()) {
- FileItem item = (FileItem) itemsIterator.next();
- if (someCondition) {
- // blah blah blah
- if (anotherCondition) {
- //print some info to user
- }
- } else {
- //do some other shit
- try {
- item.write(savedFile);
- } catch (Exception e) {
- log("Saving file failed ", e);
- }
- }
- }
- }
- } finally {
- out.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement