Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Sep 22, 2024
2 parents 8ce0102 + d99c6f0 commit f518742
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ public String print() {
}

// print current visiting element
String typeName = tree instanceof J
? tree.getClass().getCanonicalName().substring(tree.getClass().getPackage().getName().length() + 1)
: tree.getClass().getCanonicalName();
String typeName = tree instanceof J ?
tree.getClass().getCanonicalName().substring(tree.getClass().getPackage().getName().length() + 1) :
tree.getClass().getCanonicalName();

if (skipUnvisitedElement) {
boolean leftPadded = diffPos >= 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ public static TSCRuntime init() {

public static TSCRuntime init(boolean forceWrappedV8Runtime) {
try {
V8Runtime v8Runtime = (forceWrappedV8Runtime || USE_WRAPPED_V8_RUNTIME)
? JavetBridge.makeWrappedV8Runtime()
: V8Host.getV8Instance().createV8Runtime();
V8Runtime v8Runtime = (forceWrappedV8Runtime || USE_WRAPPED_V8_RUNTIME) ?
JavetBridge.makeWrappedV8Runtime() :
V8Host.getV8Instance().createV8Runtime();
JavetStandardConsoleInterceptor javetStandardConsoleInterceptor = new JavetStandardConsoleInterceptor(v8Runtime);
javetStandardConsoleInterceptor.register(v8Runtime.getGlobalObject());
return new TSCRuntime(v8Runtime, javetStandardConsoleInterceptor);
Expand Down

0 comments on commit f518742

Please sign in to comment.