aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2015-08-26 23:30:12 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2015-08-26 23:30:12 +0200
commit3abf35bc0fc7a1c130e8fec42083ffd21c342129 (patch)
treeecfc49aca7ffba139e9767ea6f4ab2331ee04585 /org.eclipse.jgit/src
parent35d45abfb2d3b8c04b3cf4d0664dabb44e03fcd6 (diff)
downloadjgit-3abf35bc0fc7a1c130e8fec42083ffd21c342129.tar.gz
jgit-3abf35bc0fc7a1c130e8fec42083ffd21c342129.zip
Fix warnings on FileUtils.isStaleFileHandle()
- add @since annotation for new API method - silence non-externalized String warning Change-Id: I864176ced64e9569e7f2cdf8f777720655bfc578 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java
index 126384b7ae..4fa249226e 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java
@@ -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$
}
}