changeset 803:99f99dcd2fce

@NotNull
author eugene.petrenko@jetbrains.com
date Fri, 30 May 2014 10:26:36 +0200
parents 005ea6b2dc0f
children 578eab848c5d
files mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/HgFileUtil.java
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/HgFileUtil.java	Fri May 30 10:25:05 2014 +0200
+++ b/mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/HgFileUtil.java	Fri May 30 10:26:36 2014 +0200
@@ -44,12 +44,15 @@
    * @return created dir
    * @throws IOException in case of I/O error
    */
+  @NotNull
   public static File createTempDir() throws IOException {
     File parentDir = new File(FileUtil.getTempDirectory());
     return createTempDir(parentDir);
   }
 
-  public static File createTempDir(@NotNull File parentDir) throws IOException {
+  @NotNull
+  public static File createTempDir(@NotNull final File parentDir) throws IOException {
+    //noinspection ResultOfMethodCallIgnored
     parentDir.mkdirs();
 
     int suffix = 0;
@@ -80,15 +83,15 @@
     }
   }
 
-
-  private static Object getTmpDirLock(@NotNull String tmpDirName) {
+  @NotNull
+  private static Object getTmpDirLock(@NotNull final String tmpDirName) {
     Object tmpDirLock = new Object();
     Object existingLock = myTmpDirLocks.putIfAbsent(tmpDirName, tmpDirLock);
     return existingLock != null ? existingLock : tmpDirLock;
   }
 
 
-  public static void deleteDir(@Nullable File dir, @NotNull Logger logger) {
+  public static void deleteDir(@Nullable final File dir, @NotNull final Logger logger) {
     if (dir == null)
       return;
     final String dirPath;