--- a/jdk/src/share/classes/sun/rmi/transport/DGCImpl.java Fri Mar 02 17:24:08 2012 +0000
+++ b/jdk/src/share/classes/sun/rmi/transport/DGCImpl.java Fri Mar 02 13:48:43 2012 -0800
@@ -84,7 +84,7 @@
/** remote implementation of DGC interface for this VM */
private static DGCImpl dgc;
/** table that maps VMID to LeaseInfo */
- private Map<VMID,LeaseInfo> leaseTable = new HashMap<VMID,LeaseInfo>();
+ private Map<VMID,LeaseInfo> leaseTable = new HashMap<>();
/** checks for lease expiration */
private Future<?> checker = null;
@@ -236,7 +236,7 @@
long time = System.currentTimeMillis();
/* List of vmids that need to be removed from the leaseTable */
- List<LeaseInfo> toUnregister = new ArrayList<LeaseInfo>();
+ List<LeaseInfo> toUnregister = new ArrayList<>();
/* Build a list of leaseInfo objects that need to have
* targets removed from their notifySet. Remove expired
@@ -313,7 +313,7 @@
private static class LeaseInfo {
VMID vmid;
long expiration;
- Set<Target> notifySet = new HashSet<Target>();
+ Set<Target> notifySet = new HashSet<>();
LeaseInfo(VMID vmid, long lease) {
this.vmid = vmid;