Skip to content

Commit

Permalink
ImmutableSet removal
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay authored and egonw committed Jan 1, 2022
1 parent 1b3dae8 commit 5a5d384
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/
package org.openscience.cdk.io;

import com.google.common.collect.ImmutableSet;
import org.openscience.cdk.AtomRef;
import org.openscience.cdk.CDKConstants;
import org.openscience.cdk.config.Elements;
Expand Down Expand Up @@ -74,6 +73,7 @@
import java.io.Reader;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
Expand Down Expand Up @@ -137,17 +137,8 @@ public class MDLV2000Reader extends DefaultChemObjectReader {
/** Delimits Structure-Data (SD) Files. */
private static final String RECORD_DELIMITER = "$$$$";

/**
* @deprecated Incorrect spelling
*/
private static final Set<String> PSUEDO_LABELS = ImmutableSet.<String> builder().add("*").add("A").add("Q")
.add("L").add("LP").add("R") // XXX: not in spec
.add("R#").build();

/** Valid pseudo labels. */
private static final Set<String> PSEUDO_LABELS = ImmutableSet.<String> builder().add("*").add("A").add("Q")
.add("L").add("LP").add("R") // XXX: not in spec
.add("R#").build();
private static final Set<String> PSEUDO_LABELS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList("*","A","Q","L","LP","R","R#")));

public MDLV2000Reader() {
this(new StringReader(""));
Expand Down

0 comments on commit 5a5d384

Please sign in to comment.