[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



---
 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]