Skip to content

Commit

Permalink
Java model property annotations should be sorted deterministically (#231
Browse files Browse the repository at this point in the history
)
  • Loading branch information
RicoYao authored Aug 13, 2019
1 parent bf771de commit 4c794b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Core/JavaIR.swift
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public struct JavaIR {
func render() -> String {
var prop = ""
if !annotations.isEmpty {
prop.append(annotations.map { "@\($0.rendered)" }.joined(separator: " ") + " ")
prop.append(annotations.map { "@\($0.rendered)" }.sorted().joined(separator: " ") + " ")
}
prop.append("\(modifiers.render()) \(type) \(name)")
if !initialValue.isEmpty {
Expand Down

0 comments on commit 4c794b2

Please sign in to comment.