Skip to content

Commit 4fb6ca2

Browse files
authored
Cleanup: Initializers come before member methods (#488)
1 parent acff3ee commit 4fb6ca2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Samples/SwiftJavaExtractJNISampleApp/Sources/MySwiftLibrary/ConcreteProtocolAB.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ public class ConcreteProtocolAB: ProtocolA, ProtocolB {
1717
public let constantB: Int64
1818
public var mutable: Int64 = 0
1919

20+
public init(constantA: Int64, constantB: Int64) {
21+
self.constantA = constantA
22+
self.constantB = constantB
23+
}
24+
2025
public func name() -> String {
2126
return "ConcreteProtocolAB"
2227
}
2328

2429
public func makeClass() -> MySwiftClass {
2530
return MySwiftClass(x: 10, y: 50)
2631
}
27-
28-
public init(constantA: Int64, constantB: Int64) {
29-
self.constantA = constantA
30-
self.constantB = constantB
31-
}
3232
}

0 commit comments

Comments
 (0)