mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
java: Avoid warnings in the tests and examples.
Avoid warnings about missing serial version, and fix a warning about raw types.
This commit is contained in:
@@ -28,7 +28,8 @@ public class InspectVM
|
||||
GuestFS g = new GuestFS ();
|
||||
|
||||
// Attach the disk image read-only to libguestfs.
|
||||
Map<String, Object> optargs = new HashMap<String, Object>() {
|
||||
@SuppressWarnings("serial") Map<String, Object> optargs =
|
||||
new HashMap<String, Object>() {
|
||||
{
|
||||
//put ("format", "raw");
|
||||
put ("readonly", Boolean.TRUE);
|
||||
@@ -65,7 +66,7 @@ public class InspectVM
|
||||
// Sort keys by length, shortest first, so that we end up
|
||||
// mounting the filesystems in the correct order.
|
||||
Map<String,String> mps = g.inspect_get_mountpoints (root);
|
||||
List<String> mps_keys = new ArrayList (mps.keySet ());
|
||||
List<String> mps_keys = new ArrayList<String> (mps.keySet ());
|
||||
Collections.sort (mps_keys, COMPARE_KEYS_LEN);
|
||||
|
||||
for (String mp : mps_keys) {
|
||||
|
||||
Reference in New Issue
Block a user