File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -785,7 +785,7 @@ expression based `matches` operator.
785
785
----
786
786
// evaluates to false
787
787
boolean falseValue = parser.parseExpression(
788
- "'xyz' instanceof T(Integer.class )").getValue(Boolean.class);
788
+ "'xyz' instanceof T(Integer)").getValue(Boolean.class);
789
789
790
790
// evaluates to true
791
791
boolean trueValue = parser.parseExpression(
@@ -799,7 +799,7 @@ expression based `matches` operator.
799
799
[NOTE]
800
800
====
801
801
Be careful with primitive types as they are immediately boxed up to the wrapper type,
802
- so `1 instanceof T(int)` evaluates to `false` while `1 instanceof T(Integer.class )`
802
+ so `1 instanceof T(int)` evaluates to `false` while `1 instanceof T(Integer)`
803
803
evaluates to `true`, as expected.
804
804
====
805
805
You can’t perform that action at this time.
0 commit comments