~ubuntu-branches/ubuntu/vivid/cdk/vivid

« back to all changes in this revision

Viewing changes to src/main/org/openscience/cdk/AtomContainerSet.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2011-05-30 20:50:41 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110530205041-78aklnmmeg2nal1s
Tags: 1:1.2.10-1
* New upstream release. (Closes: #627582, #627712)
* debian/control
  - Drop bunch of not used build dependencies - libcommons-cli-java,
    libcrimson-java, libmysql-java, libpgjava, xsltproc.
  - Add javahelper as build dependency to use jh_classpath and jh_depends
    utilities.
* debian/rules
  - Include javahelper.mk
  - Remove ant-nodeps, vecmath, log4j-1.2, commons-cli from build classpath.
    Build classpath is managed by upstream build system.
  - Remove modules which do not contain any class files when built - inchi,
    pdbcml, qsarxml.
  - Add logic to generate debian/classpath file. This file is used by
    jh_classpath to update classpath in manifest files. (Closes: #627683)
* debian/patches/
  - 21_vecmath_lib_name.patch - Remove. Not needed anymore.
  - 22_fix_build.patch - Update as per current upstream source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        /**  Constructs an empty AtomContainerSet. */
69
69
        public AtomContainerSet() {
70
70
                atomContainerCount = 0;
71
 
                atomContainers = new AtomContainer[growArraySize];
 
71
                atomContainers = new IAtomContainer[growArraySize];
72
72
                multipliers = new Double[growArraySize];
73
73
        }
74
74
 
320
320
         */
321
321
        protected void growAtomContainerArray() {
322
322
                growArraySize = atomContainers.length;
323
 
                AtomContainer[] newatomContainers = new AtomContainer[atomContainers.length + growArraySize];
 
323
                IAtomContainer[] newatomContainers = new IAtomContainer[atomContainers.length + growArraySize];
324
324
                System.arraycopy(atomContainers, 0, newatomContainers, 0, atomContainers.length);
325
325
                atomContainers = newatomContainers;
326
326
                Double[] newMultipliers = new Double[multipliers.length + growArraySize];
365
365
         */
366
366
        public Object clone() throws CloneNotSupportedException {
367
367
                AtomContainerSet clone = (AtomContainerSet)super.clone();
368
 
                clone.atomContainers = new AtomContainer[atomContainerCount];
 
368
                clone.atomContainers = new IAtomContainer[atomContainerCount];
369
369
                clone.atomContainerCount = 0;
370
370
                for (int i = 0; i < atomContainerCount; i++) {
371
371
                    clone.addAtomContainer((IAtomContainer)atomContainers[i].clone());