[Libguestfs] [PATCH 4/4] java: doc: add the version (if available) of APIs

Pino Toscano ptoscano at redhat.com
Thu May 28 14:47:55 UTC 2015


---
 generator/java.ml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/generator/java.ml b/generator/java.ml
index 573f1c2..4c89197 100644
--- a/generator/java.ml
+++ b/generator/java.ml
@@ -273,6 +273,10 @@ public class GuestFS {
         pr "   * </p><p>\n";
         pr "   * %s\n" doc;
         pr "   * </p>\n";
+        (match version_added f with
+        | None -> ()
+        | Some version -> pr "   * @since %s\n" version
+        );
         (match f with
         | { deprecated_by = None } -> ()
         | { deprecated_by = Some alt } ->
-- 
2.1.0




More information about the Libguestfs mailing list