Mercurial > jhg
diff src/org/tmatesoft/hg/core/HgInvalidFileException.java @ 394:f52ca9530774 v0.8.0
Resolve FIXMEs: more consistent exceptions
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 22 Feb 2012 03:10:55 +0100 |
parents | 856517285256 |
children | 0ae53c32ecef |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgInvalidFileException.java Tue Feb 21 19:18:40 2012 +0100 +++ b/src/org/tmatesoft/hg/core/HgInvalidFileException.java Wed Feb 22 03:10:55 2012 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 TMate Software Ltd + * Copyright (c) 2011-2012 TMate Software Ltd * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -44,11 +44,11 @@ public HgInvalidFileException(String message, Throwable th, File file) { super(message, th); - localFile = file; + localFile = file; // allows null } public HgInvalidFileException setFile(File file) { - assert file != null; + assert file != null; // doesn't allow null not to clear file accidentally localFile = file; return this; }