Skip to content

Commit dedcf33

Browse files
committed
Use linked hashsets
1 parent 81decd0 commit dedcf33

File tree

1 file changed

+3
-3
lines changed
  • base/core/src/main/java/org/openscience/cdk/sgroup

1 file changed

+3
-3
lines changed

base/core/src/main/java/org/openscience/cdk/sgroup/Sgroup.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
*/
3737
public class Sgroup {
3838

39-
private final Set<IAtom> atoms = new HashSet<>();
40-
private final Set<IBond> bonds = new HashSet<>();
41-
private final Set<Sgroup> parents = new HashSet<>();
39+
private final Set<IAtom> atoms = new LinkedHashSet<>();
40+
private final Set<IBond> bonds = new LinkedHashSet<>();
41+
private final Set<Sgroup> parents = new LinkedHashSet<>();
4242

4343
private final Map<SgroupKey, Object> attributes = new EnumMap<>(SgroupKey.class);
4444

0 commit comments

Comments
 (0)