Convert serialVersionUID to local variable?

In the following class serialVersionUID triggers the inspection "Field
can be converted or one or more local variables." It doesn't seem that
serialVersionUID should ever trigger this inspection. Am I missing
something, or is this a bug?

public class Woof implements Serializable {
private static final long serialVersionUID = 1L;
private int id;

public Woof(int id) {this.id = id;}
public int getID() {return id;}
}

3 comments
Comment actions Permalink

I neglected to mention that this is build 3430.

0
Comment actions Permalink

Bug:
http://www.jetbrains.net/jira/browse/IDEADEV-2141

Michael Besosa wrote:

In the following class serialVersionUID triggers the inspection "Field
can be converted or one or more local variables." It doesn't seem that
serialVersionUID should ever trigger this inspection. Am I missing
something, or is this a bug?

public class Woof implements Serializable {
private static final long serialVersionUID = 1L;
private int id;

public Woof(int id) {this.id = id;}
public int getID() {return id;}
}

0
Comment actions Permalink

Fixed.

"Michael Besosa" <michael.besosa@pearson.com> wrote in message
news:dcd4oo$9mp$1@is.intellij.net...

In the following class serialVersionUID triggers the inspection "Field
can be converted or one or more local variables." It doesn't seem that
serialVersionUID should ever trigger this inspection. Am I missing
something, or is this a bug?

>

public class Woof implements Serializable {
private static final long serialVersionUID = 1L;
private int id;

>

public Woof(int id) {this.id = id;}
public int getID() {return id;}
}



0

Please sign in to leave a comment.