Skip to content

Commit

Permalink
Merge pull request swiftlang#160 from PADL/lhoward/public-adopt
Browse files Browse the repository at this point in the history
  • Loading branch information
ktoso authored Nov 7, 2024
2 parents 3436f46 + abdd950 commit 651cc89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/JavaKit/JavaKitVM/JavaVirtualMachine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import FoundationEssentials
import Foundation
#endif

typealias JavaVMPointer = UnsafeMutablePointer<JavaVM?>
public typealias JavaVMPointer = UnsafeMutablePointer<JavaVM?>

public final class JavaVirtualMachine: @unchecked Sendable {
/// The JNI version that we depend on.
Expand All @@ -31,7 +31,7 @@ public final class JavaVirtualMachine: @unchecked Sendable {
private let destroyOnDeinit: Bool

/// Adopt an existing JVM pointer.
private init(adoptingJVM jvm: JavaVMPointer) {
public init(adoptingJVM jvm: JavaVMPointer) {
self.jvm = jvm
self.destroyOnDeinit = false
}
Expand Down

0 comments on commit 651cc89

Please sign in to comment.