Skip to content

Commit 824bb84

Browse files
committed
chore: Update jsii version to 1.6
Signed-off-by: campionfellin <campionfellin@gmail.com>
1 parent 584bc50 commit 824bb84

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

test/__snapshots__/cli.test.ts.snap

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ public final class $Module extends JsiiModule {
5353
if (!MODULE_TYPES.containsKey(fqn)) {
5454
throw new ClassNotFoundException(\\"Unknown JSII type: \\" + fqn);
5555
}
56-
return this.cache.computeIfAbsent(MODULE_TYPES.get(fqn), this::findClass);
56+
String className = MODULE_TYPES.get(fqn);
57+
if (!this.cache.containsKey(className)) {
58+
this.cache.put(className, this.findClass(className));
59+
}
60+
return this.cache.get(className);
5761
}
5862
5963
private Class<?> findClass(final String binaryName) {
@@ -145,7 +149,7 @@ public interface Operands extends software.amazon.jsii.JsiiSerializable {
145149
/**
146150
* A builder for {@link Operands}
147151
*/
148-
public static final class Builder {
152+
public static final class Builder implements software.amazon.jsii.Builder<Operands> {
149153
private java.lang.Number lhs;
150154
private java.lang.Number rhs;
151155
@@ -174,6 +178,7 @@ public interface Operands extends software.amazon.jsii.JsiiSerializable {
174178
* @return a new instance of {@link Operands}
175179
* @throws NullPointerException if any required attribute was not provided
176180
*/
181+
@Override
177182
public Operands build() {
178183
return new Jsii$Proxy(lhs, rhs);
179184
}
@@ -268,9 +273,9 @@ Object {
268273
],
269274
},
270275
"description": "generated",
271-
"fingerprint": "YzbxW50rbVtKyO3xyXOGChedDt8pdGdCRYTETM1PW7k=",
276+
"fingerprint": "+fSgo9PQwFAKmX2JcaRILwTXE/p1H1bq+QKuOREAfuE=",
272277
"homepage": "http://generated",
273-
"jsiiVersion": "1.5.0 (build 46538f8)",
278+
"jsiiVersion": "1.6.0 (build 248e75b)",
274279
"license": "Apache-2.0",
275280
"name": "generated",
276281
"repository": Object {
250 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)