Changeset 30702
- Timestamp:
- 2016-08-12T19:52:01+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r30701 r30702 93 93 System.err.println("*** Exception occurred: " + e.getMessage()); 94 94 } finally { 95 try { 96 if(fin != null) { 97 fin.close(); 98 fin = null; 99 } 100 } catch(IOException ioe) { 101 fin = null; 102 103 } 95 closeResource(fin); 104 96 } 105 97 … … 583 575 System.err.println("Exception occurred: " + e.getMessage()); 584 576 } finally { 585 try { 586 if(fin != null) { 587 fin.close(); 588 fin = null; 589 } 590 if(fout != null) { 591 fout.close(); 592 fout = null; 593 } 594 } catch(IOException ioe) { 595 fin = null; 596 fout = null; 597 } 577 closeResource(fin); 578 closeResource(fout); 598 579 599 580 } 600 581 return oldValue; 601 582 } 602 583 … … 614 595 System.err.println("Exception closing resource: " + e.getMessage()); 615 596 e.printStackTrace(); 597 resourceHandle = null; 616 598 } 617 599 }
Note:
See TracChangeset
for help on using the changeset viewer.