Skip to content

Commit

Permalink
🐳 chore: Upgraded Javet to v3.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Feb 19, 2024
1 parent 5ab05cd commit 280be37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ object Config {
const val COMMONS_LANG3 = "3.14.0"
const val COMMONS_TEXT = "1.11.0"
const val JACKSON = "2.16.1"
const val JAVET = "3.0.3"
const val JAVET = "3.0.4"
const val JUNIT = "5.10.1"
const val SLF4J = "2.0.11"
}
Expand Down
14 changes: 7 additions & 7 deletions scripts/node/test/test_transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,14 @@ function testMethod() {
methodNames.push(methodName);
if (methodName == 'names') {
const modifiers = node.modifiers;
assert.isEmpty(modifiers.toString());
assert.isEmpty(modifiers.annotations);
assert.isEmpty(modifiers.flags);
assert.isEmpty(node.parameters);
assert.isEmpty(modifiers.toString(), 'modifiers.toString() should be empty');
assert.isEmpty(modifiers.annotations, 'modifiers.annotations should be empty');
assert.isEmpty(modifiers.flags, 'modifiers.flags should be empty');
assert.isEmpty(node.parameters, 'node.parameters should be empty');
assert.isNull(node.receiverParameter);
assert.isEmpty(node.returnType);
assert.isEmpty(node.throwExpressions);
assert.isEmpty(node.typeParameters);
assert.equal('String[]', node.returnType.toString(), 'node.returnType should be String[]');
assert.isEmpty(node.throwExpressions, 'node.throwExpressions should be empty');
assert.isEmpty(node.typeParameters, 'node.typeParameters should be empty');
assert.equal('com.caoccao.jaspiler.trees.JTNewArray', node.defaultValue.className);
assert.equal('{"A", "B"}', node.defaultValue.toString());
node.defaultValue = jaspiler.createFieldAccess('ABC');
Expand Down

0 comments on commit 280be37

Please sign in to comment.