Changeset 1498 for trunk/src/org/expeditee/io/ExpReader.java
- Timestamp:
- 12/05/19 17:23:45 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/io/ExpReader.java
r1496 r1498 20 20 21 21 import java.io.BufferedReader; 22 import java.io.FileNotFoundException; 22 23 import java.io.FileReader; 23 24 import java.io.IOException; … … 409 410 410 411 public static int getVersion(String fullpath) { 412 if (fullpath == null) return -1; 411 413 try { 412 414 BufferedReader reader = new BufferedReader(new FileReader(fullpath)); … … 425 427 reader.close(); 426 428 } catch (Exception e) { 427 e.printStackTrace(); 429 //e.printStackTrace(); 430 // When this exception goes off, it is because it is trying to check if a frame that has yet to be saved 431 // to the filesystem has a version number greater than in memory one. This only happens for new frames, 432 // so is not a problem. 428 433 } 429 434 return -1; … … 431 436 432 437 public static String redirectTo(String fullPath) { 438 if (fullPath == null) return null; 433 439 try { 434 440 BufferedReader reader = new BufferedReader(new FileReader(fullPath)); … … 442 448 } 443 449 reader.close(); 444 } catch (Exception e) { 445 e.printStackTrace(); 450 } catch (IOException e) { 451 //e.printStackTrace(); 452 // When this exception goes off, it is because it is trying to check if a frame that has yet to be saved 453 // to the filesystem has a redirect. This comes out in teh wash later on when a redirect is next checked. 446 454 } 447 455 return null;
Note:
See TracChangeset
for help on using the changeset viewer.