File tree Expand file tree Collapse file tree
biojava-structure/src/main/java/org/biojava/nbio/structure Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828import org .slf4j .LoggerFactory ;
2929
3030import 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
You can’t perform that action at this time.
0 commit comments