@@ -415,7 +415,7 @@ protected void handleEnd(Collection results) throws IOException {
415415 *
416416 * @param startDirectory the directory to start from
417417 * @param results the collection of result objects, may be updated
418- * @param cancel The exception throw to cancel further processing
418+ * @param cancel the exception throw to cancel further processing
419419 * containing details at the point of cancellation.
420420 * @throws IOException if an I/O Error occurs
421421 */
@@ -431,15 +431,20 @@ protected void handleCancelled(File startDirectory, Collection results,
431431 */
432432 public static class CancelException extends IOException {
433433
434+ /** Serialization id. */
435+ private static final long serialVersionUID = 1347339620135041008L ;
436+
437+ /** The file being processed when the exception was thrown. */
434438 private File file ;
439+ /** The file depth when the exception was thrown. */
435440 private int depth = -1 ;
436441
437442 /**
438443 * Constructs a <code>CancelException</code> with
439444 * the file and depth when cancellation occurred.
440445 *
441- * @param file The file when the operation was cancelled
442- * @param depth The depth when the operation was cancelled
446+ * @param file the file when the operation was cancelled, may be null
447+ * @param depth the depth when the operation was cancelled, may be null
443448 */
444449 public CancelException (File file , int depth ) {
445450 this ("Operation Cancelled" , file , depth );
@@ -450,9 +455,9 @@ public CancelException(File file, int depth) {
450455 * an appropriate message and the file and depth when
451456 * cancellation occurred.
452457 *
453- * @param message The detail message.
454- * @param file The file when the operation was cancelled
455- * @param depth The depth when the operation was cancelled
458+ * @param message the detail message
459+ * @param file the file when the operation was cancelled
460+ * @param depth the depth when the operation was cancelled
456461 */
457462 public CancelException (String message , File file , int depth ) {
458463 super (message );
@@ -463,7 +468,7 @@ public CancelException(String message, File file, int depth) {
463468 /**
464469 * Return the file when the operation was cancelled.
465470 *
466- * @return The file when the operation was cancelled
471+ * @return the file when the operation was cancelled
467472 */
468473 public File getFile () {
469474 return file ;
@@ -472,7 +477,7 @@ public File getFile() {
472477 /**
473478 * Return the depth when the operation was cancelled.
474479 *
475- * @return The depth when the operation was cancelled
480+ * @return the depth when the operation was cancelled
476481 */
477482 public int getDepth () {
478483 return depth ;
0 commit comments