File tree Expand file tree Collapse file tree
src/utils/model-generator
test/utils/model-generator/p Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ predicate isRelevantType(Type t) {
259259 not t instanceof EnumType and
260260 not t instanceof PrimitiveType and
261261 not t instanceof BoxedType and
262- not t .( RefType ) .hasQualifiedName ( "java.math " , "BigInteger " ) and
262+ not t .( RefType ) .getAnAncestor ( ) . hasQualifiedName ( "java.lang " , "Number " ) and
263263 (
264264 not t .( Array ) .getElementType ( ) instanceof PrimitiveType or
265265 isPrimitiveTypeUsedForBulkData ( t .( Array ) .getElementType ( ) )
Original file line number Diff line number Diff line change 11package p ;
22
3+ import java .math .BigDecimal ;
34import java .math .BigInteger ;
45import java .util .Arrays ;
56import java .util .Collection ;
@@ -86,6 +87,10 @@ public BigInteger getBigInt() {
8687 return BigInteger .valueOf (intValue );
8788 }
8889
90+ public BigDecimal getBigDecimal () {
91+ return new BigDecimal (value );
92+ }
93+
8994 public void fillIn (List <String > target ) {
9095 target .add (value );
9196 }
You can’t perform that action at this time.
0 commit comments