Closed GoogleCodeExporter closed 9 years ago
The names of the properties in the first case do not conform to the JavaBean
specification. The first letter after 'set' or 'get' must be in upper case.
setmValue -> setMValue
Original comment by py4fun@gmail.com
on 21 Oct 2011 at 2:48
my domain is :
1.my domain is:
public class Kv{
private String mKey ;
private String mValue ;
public String getMKey() {
return mKey;
}
public void setMKey(String mKey) {
this.mKey = mKey;
}
public String getMValue() {
return mValue;
}
public void setMValue(String mValue) {
this.mValue = mValue;
}
}
I make mistake from CTRL + V when I use "key" way, it still has error in 1.9
Original comment by longt...@gmail.com
on 25 Oct 2011 at 6:19
domain like this:
public class Kv{
private String mKey ;
private String mValue ;
public String getmKey() {
return mKey;
}
public void setmKey(String mKey) {
this.mKey = mKey;
}
public String getmValue() {
return mValue;
}
public void setmValue(String mValue) {
this.mValue = mValue;
}
}
has no error!
Original comment by longt...@gmail.com
on 25 Oct 2011 at 6:36
I did not quite catch the message. Does it work ? If it does not, can you
please send a failing JUnit test ?
Original comment by py4fun@gmail.com
on 25 Oct 2011 at 7:41
JavaBean specification is define that . when property's second character is
uppercase,then the first character after "get" method should be lowercase.also
in "set" method.
eg:
private String iMac;
public String getiMac(){
...
}
public void setiMac(String iMac){
...
}
so it is no error in snakeyaml , it's my fault. thank you very much!
Original comment by longt...@gmail.com
on 26 Oct 2011 at 3:53
Original comment by py4fun@gmail.com
on 26 Oct 2011 at 7:36
Original issue reported on code.google.com by
longt...@gmail.com
on 21 Oct 2011 at 8:20