summaryrefslogtreecommitdiffstats
path: root/java/examples
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-13 13:59:00 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-08-05 21:57:07 +0100
commit3c5a7bc2b366ffad0a389f125854353914fce8b4 (patch)
tree9bc3ab6e7cfe3a642f11bc65ade7c06311ee2437 /java/examples
parent11da32315d7a6ccf65d5ea0d9128224c3f3b70a7 (diff)
downloadlibguestfs-3c5a7bc2b366ffad0a389f125854353914fce8b4.tar.gz
libguestfs-3c5a7bc2b366ffad0a389f125854353914fce8b4.tar.xz
libguestfs-3c5a7bc2b366ffad0a389f125854353914fce8b4.zip
java: Generate overloaded non-optargs method for each optargs method.
For example the existing method: public void mkfs_opts (String fstype, String device, Map<..> optargs); is now accompanied by this overloaded method which is a simple wrapper: public void mkfs_opts (String fstype, String device) throws LibGuestFSException { mkfs_opts (fstype, device, null); } (cherry picked from commit 0da2dbef26a9efddbc1f4cd6cbe796b3b5f98d13)
Diffstat (limited to 'java/examples')
-rw-r--r--java/examples/guestfs-java.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/examples/guestfs-java.pod b/java/examples/guestfs-java.pod
index cda4ed22..482539bd 100644
--- a/java/examples/guestfs-java.pod
+++ b/java/examples/guestfs-java.pod
@@ -9,7 +9,7 @@ guestfs-java - How to use libguestfs from Java
import com.redhat.et.libguestfs.*;
GuestFS g = new GuestFS ();
- g.add_drive_opts ("disk.img", null);
+ g.add_drive_opts ("disk.img");
g.launch ();
=head1 DESCRIPTION