mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-08 03:24:27 +08:00
new test cases to support bean annotation
This commit is contained in:
@@ -13,7 +13,7 @@ public class GenericBeanInt extends GenericBean<Integer> {
|
||||
|
||||
/** @return the a */
|
||||
public char getA() {
|
||||
return a;
|
||||
return this.a;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -25,6 +25,33 @@ public class GenericBeanInt extends GenericBean<Integer> {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should not be beanable
|
||||
*
|
||||
* @return false
|
||||
*/
|
||||
public boolean get() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should not be beanable
|
||||
*
|
||||
* @return false
|
||||
*/
|
||||
public boolean is() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should be beanable
|
||||
*
|
||||
* @return false
|
||||
*/
|
||||
public boolean isB() {
|
||||
return this.genericValue.equals((Integer.valueOf(this.a+1)));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param genericValue
|
||||
* the value to initiate with.
|
||||
|
Reference in New Issue
Block a user