src/solaris/classes/sun/awt/X11/XDropTargetProtocol.java
Print this page
rev 9830 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by: darcy, prr
*** 293,303 ****
return proxy;
}
}
/* Access to HashMap is synchronized on this XDropTargetProtocol instance. */
! private final HashMap embedderRegistry = new HashMap();
protected final void putEmbedderRegistryEntry(long embedder,
boolean overriden,
int version,
long proxy) {
--- 293,304 ----
return proxy;
}
}
/* Access to HashMap is synchronized on this XDropTargetProtocol instance. */
! private final HashMap<Long, EmbedderRegistryEntry> embedderRegistry =
! new HashMap<>();
protected final void putEmbedderRegistryEntry(long embedder,
boolean overriden,
int version,
long proxy) {
*** 308,319 ****
}
}
protected final EmbedderRegistryEntry getEmbedderRegistryEntry(long embedder) {
synchronized (this) {
! return
! (EmbedderRegistryEntry)embedderRegistry.get(Long.valueOf(embedder));
}
}
protected final void removeEmbedderRegistryEntry(long embedder) {
synchronized (this) {
--- 309,319 ----
}
}
protected final EmbedderRegistryEntry getEmbedderRegistryEntry(long embedder) {
synchronized (this) {
! return embedderRegistry.get(Long.valueOf(embedder));
}
}
protected final void removeEmbedderRegistryEntry(long embedder) {
synchronized (this) {