]> source.dussan.org Git - jgit.git/commitdiff
Fix warnings on FileUtils.isStaleFileHandle() 32/54632/1
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 26 Aug 2015 21:30:12 +0000 (23:30 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 26 Aug 2015 21:30:12 +0000 (23:30 +0200)
- add @since annotation for new API method
- silence non-externalized String warning

Change-Id: I864176ced64e9569e7f2cdf8f777720655bfc578
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java

index 126384b7aec1121da133aea6d84504688c884646..4fa249226e17e706cb13bdac6c027665c99f62bb 100644 (file)
@@ -520,9 +520,11 @@ public class FileUtils {
         *
         * @param ioe
         * @return a boolean true if the IOException is a Stale NFS FIle Handle
+        * @since 4.1
         */
        public static boolean isStaleFileHandle(IOException ioe) {
                String msg = ioe.getMessage();
-               return msg != null && msg.toLowerCase().matches("stale .*file .*handle");
+               return msg != null
+                               && msg.toLowerCase().matches("stale .*file .*handle"); //$NON-NLS-1$
        }
 }