L
Lawrence D'Oliveiro
I was setting up a table of tabs for a tabbed activity in Android. The
initial part of my table entry definition looks like this:
class TabParams
{
String Name;
String Title;
int IconID;
Class FrameClass;
Compiled and ran just fine. Then I noticed that “Class†is being used as a
raw type. So I changed that last line to
Class<? extends android.app.Activity> FrameClass;
There doesn’t seem to be any option in javac to warn about this sort of
thing.
initial part of my table entry definition looks like this:
class TabParams
{
String Name;
String Title;
int IconID;
Class FrameClass;
Compiled and ran just fine. Then I noticed that “Class†is being used as a
raw type. So I changed that last line to
Class<? extends android.app.Activity> FrameClass;
There doesn’t seem to be any option in javac to warn about this sort of
thing.