IG question

Hi!

IG says class may be interface ta such code:

public class SystemTags
{
public static final String BeaconTagName = "sys_beacon";

public static final String ArchiveTagName = "sys_archive";

public static final String UpdateTagName = "sys_update";

public static final Map SystemTagsMap = new HashMap();

static
{
SystemTagsMap.put(BeaconTagName,IntegerTag.class);
SystemTagsMap.put(ArchiveTagName,BooleanTag.class);
SystemTagsMap.put(UpdateTagName,BooleanTag.class);
}
}

I realy want to use static in such cases.
But I also want to use such inspection

___
/** WBR @author Denis Tsyplakov @ICQ_UIN 108477017
@mailto: lc@yandex.ru */


1 comment
Comment actions Permalink

On 07-05-2004 09:17, Denis Tsyplakov wrote:

IG says class may be interface ta such code:

public class SystemTags
{
public static final String BeaconTagName = "sys_beacon";

public static final String ArchiveTagName = "sys_archive";

public static final String UpdateTagName = "sys_update";

public static final Map SystemTagsMap = new HashMap();

static
{
SystemTagsMap.put(BeaconTagName,IntegerTag.class);
SystemTagsMap.put(ArchiveTagName,BooleanTag.class);
SystemTagsMap.put(UpdateTagName,BooleanTag.class);
}
}

I realy want to use static in such cases.
But I also want to use such inspection


I have a fix for this problem and a quick fix for this inspection. Also
class with protected or package access fields or methods were being
marked as "may be interface".

Bas

0

Please sign in to leave a comment.