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;}
}

0
3 comments
Avatar
Permanently deleted user

I neglected to mention that this is build 3430.

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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.