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>
This commit is contained in:
parent
35d45abfb2
commit
3abf35bc0f
|
@ -520,9 +520,11 @@ else if (!ignoreCase
|
||||||
*
|
*
|
||||||
* @param ioe
|
* @param ioe
|
||||||
* @return a boolean true if the IOException is a Stale NFS FIle Handle
|
* @return a boolean true if the IOException is a Stale NFS FIle Handle
|
||||||
|
* @since 4.1
|
||||||
*/
|
*/
|
||||||
public static boolean isStaleFileHandle(IOException ioe) {
|
public static boolean isStaleFileHandle(IOException ioe) {
|
||||||
String msg = ioe.getMessage();
|
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$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue