Skip to content

Commit 86bbe0a

Browse files
committed
Cleanup
1 parent 71005d2 commit 86bbe0a

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@
2828
import org.slf4j.LoggerFactory;
2929

3030
import java.io.Serializable;
31-
import java.util.*;
31+
import java.util.ArrayList;
32+
import java.util.Collections;
33+
import java.util.HashMap;
34+
import java.util.HashSet;
35+
import java.util.LinkedHashMap;
36+
import java.util.List;
37+
import java.util.Map;
38+
import java.util.Set;
39+
import java.util.TreeSet;
3240

3341
/**
3442
* An object to contain the info from the PDB header for a Molecule.
@@ -123,8 +131,8 @@ public class EntityInfo implements Serializable {
123131
private Long id;
124132

125133
public EntityInfo () {
126-
chains = new ArrayList<Chain>();
127-
chains2pdbResNums2ResSerials = new HashMap<String, Map<ResidueNumber,Integer>>();
134+
chains = new ArrayList<>();
135+
chains2pdbResNums2ResSerials = new HashMap<>();
128136
molId = -1;
129137
}
130138

@@ -135,9 +143,11 @@ public EntityInfo () {
135143
*/
136144
public EntityInfo (EntityInfo c) {
137145

138-
this.chains = new ArrayList<Chain>();
146+
this.id = c.id;
139147

140-
this.chains2pdbResNums2ResSerials = new HashMap<String, Map<ResidueNumber,Integer>>();
148+
this.chains = new ArrayList<>();
149+
150+
this.chains2pdbResNums2ResSerials = new HashMap<>();
141151

142152
this.molId = c.molId;
143153

0 commit comments

Comments
 (0)