Skip to content

Commit 8785ca1

Browse files
author
Alex Decker
committed
MF-5759 fix stability of namespace route sorting
1 parent 99c78ef commit 8785ca1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/generator/java/java.stoneg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2586,7 +2586,9 @@ def generate_client(self):
25862586

25872587
def generate_namespace(self, namespace):
25882588
assert isinstance(namespace, ApiNamespace), repr(namespace)
2589-
2589+
# We need a stable sort in order to keep the resultant output
2590+
# the same across runs.
2591+
namespace.routes.sort()
25902592
j = self.j
25912593

25922594
# add documentation to our packages

0 commit comments

Comments
 (0)