Skip to content

Commit 5cfd160

Browse files
authored
Merge pull request biojava#903 from Vidishab18/flaky_test_fixed
Flaky Test Fixed in TestStructureSerialization
2 parents 3d2cf18 + 203f5e3 commit 5cfd160

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • biojava-structure/src/main/java/org/biojava/nbio/structure

biojava-structure/src/main/java/org/biojava/nbio/structure/PDBHeader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public String toString(){
108108
Class<?> c = Class.forName(PDBHeader.class.getName());
109109
Method[] methods = c.getMethods();
110110

111+
Arrays.sort(methods, (o1, o2)->o1.getName().compareTo(o2.getName()));
111112
for (Method m : methods) {
112113
String name = m.getName();
113114

0 commit comments

Comments
 (0)