Re: Xlint " warning: [unchecked] unchecked conversion"



"RVic" <rvince99@xxxxxxxxxxx> wrote in message
news:4131c823-81b2-4622-bb22-a86435b36f3a@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Yes, that works, but what then about:

Hashtable getHashtable() {
return this.hashtable;
}
.
.
.
public static void main(String[] args) throws Exception {
Hashtable <String, Vector<String>> ht = MyClass.getHashtable(); .
.
}

How do I eliminate the "warning: [unchecked] unchecked
conversion" warning for that line in main()? i.e. how do
I put the notation <String, Vector<String>> to the rigth
of the equals sign?

You re-decrade all definitions again.

Hashtable<String, Vector<String, Vector<String>> getHashtable() {
return this.hashtable;
}
.



Relevant Pages

  • Data source controls and parameter type conversion
    ... Exception I got: ... Since String and Int32 are incompatible types, ... perform conversion from String to Int32 in the first place? ...
    (microsoft.public.dotnet.languages.csharp)
  • SMTP mailing problem (sending 1000 messages)
    ... The exception in below. ... Binder binder, Object target, Objectargs, ParameterModifiermodifiers, ... CultureInfo culture, String[] namedParameters) ...
    (microsoft.public.inetserver.iis.smtp_nntp)
  • SMTP mailing problem (sending 1000 messages)
    ... The exception in below. ... Binder binder, Object target, Objectargs, ParameterModifiermodifiers, ... CultureInfo culture, String[] namedParameters) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Conversion from string "0" to type Integer is not valid
    ... exception is thrown regardless of the context of the conversion, ... Explicitly converting the string as you ... indicated below will still throw the exception on my machine. ... Dim i as Integer ...
    (microsoft.public.dotnet.framework)
  • Re: Casting to double in C#
    ... catch/Handle exception here. ... Or you can convert the value to string and then parse - better avoid ... Cast, not convert, the object to string. ... conversion, and an explicit cast should be far more efficient than calling ...
    (microsoft.public.dotnet.languages.csharp)