• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I got a Type-Safe Warning

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI~ nice meet you. I have a guestion!.

I use WeakReference in my LockManager Class. Here,



But,I got a Type-Safe Warning When I compiled this.!!

Note: Db.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.

Then, I modified Map.



As expected,It is the same as this.

Now,How do i fix this(Type-safe warning)? Please,Help me.

[ January 31, 2007: Message edited by: Denny Kim ]

(edited: SCJD is a quiet place, don't shout in topic titles)
[ February 01, 2007: Message edited by: Barry Gaunt ]
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do not forget that WeakReference is a generic class:


 
reply
    Bookmark Topic Watch Topic
  • New Topic