java: Small fix to Java bindings.
[libguestfs.git] / src / generator.ml
index 691cf60..ad4c0cb 100755 (executable)
@@ -8588,7 +8588,10 @@ Java_com_redhat_et_libguestfs_GuestFS__1close
          | RErr | RBool _ | RInt _ | RInt64 _ | RConstString _
          | RConstOptString _
          | RString _ | RBufferOut _ | RStruct _ | RHashtable _ -> false) ||
-          List.exists (function StringList _ -> true | _ -> false) (snd style) in
+          List.exists (function
+                      | StringList _ -> true
+                      | DeviceList _ -> true
+                      | _ -> false) (snd style) in
       if needs_i then
         pr "  int i;\n";