Adapt to the JGit v4.0.0.201506090130-r

This version of JGit also removes the 'release()' method in many
interfaces/classes in favor of implementing the AutoCloseable interface.
In stable-2.10 we just replace all usages of the release() method with
the close() method.

Change-Id: I6af2149b337d3a817cb710ae8901d9582098730a
diff --git a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java
index cc6abaa..58393fb 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/CreateReviewNotes.java
@@ -157,7 +157,7 @@
         }
       }
     } finally {
-      rw.release();
+      rw.close();
     }
   }
 
@@ -178,7 +178,7 @@
         getMessage().append("* ").append(commit.getShortMessage()).append("\n");
       }
     } finally {
-      rw.release();
+      rw.close();
     }
   }
 
@@ -194,7 +194,7 @@
               message.toString());
     } finally {
       if (inserter != null) {
-        inserter.release();
+        inserter.close();
       }
     }
   }