Skip to content

Commit 5a5d384

Browse files
johnmayegonw
authored andcommitted
ImmutableSet removal
1 parent 1b3dae8 commit 5a5d384

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

storage/ctab/src/main/java/org/openscience/cdk/io/MDLV2000Reader.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
*/
2525
package org.openscience.cdk.io;
2626

27-
import com.google.common.collect.ImmutableSet;
2827
import org.openscience.cdk.AtomRef;
2928
import org.openscience.cdk.CDKConstants;
3029
import org.openscience.cdk.config.Elements;
@@ -74,6 +73,7 @@
7473
import java.io.Reader;
7574
import java.io.StringReader;
7675
import java.util.ArrayList;
76+
import java.util.Arrays;
7777
import java.util.Collection;
7878
import java.util.Collections;
7979
import java.util.HashMap;
@@ -137,17 +137,8 @@ public class MDLV2000Reader extends DefaultChemObjectReader {
137137
/** Delimits Structure-Data (SD) Files. */
138138
private static final String RECORD_DELIMITER = "$$$$";
139139

140-
/**
141-
* @deprecated Incorrect spelling
142-
*/
143-
private static final Set<String> PSUEDO_LABELS = ImmutableSet.<String> builder().add("*").add("A").add("Q")
144-
.add("L").add("LP").add("R") // XXX: not in spec
145-
.add("R#").build();
146-
147140
/** Valid pseudo labels. */
148-
private static final Set<String> PSEUDO_LABELS = ImmutableSet.<String> builder().add("*").add("A").add("Q")
149-
.add("L").add("LP").add("R") // XXX: not in spec
150-
.add("R#").build();
141+
private static final Set<String> PSEUDO_LABELS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList("*","A","Q","L","LP","R","R#")));
151142

152143
public MDLV2000Reader() {
153144
this(new StringReader(""));

0 commit comments

Comments
 (0)