Skip to content

Commit 55a00e4

Browse files
johnmayegonw
authored andcommitted
More left overs - all good now.
1 parent fcc9d72 commit 55a00e4

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

legacy/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,31 +39,26 @@
3939
<groupId>org.openscience.cdk</groupId>
4040
<artifactId>cdk-formula</artifactId>
4141
<version>${project.version}</version>
42-
<scope>test</scope>
4342
</dependency>
4443
<dependency>
4544
<groupId>org.openscience.cdk</groupId>
4645
<artifactId>cdk-reaction</artifactId>
4746
<version>${project.version}</version>
48-
<scope>test</scope>
4947
</dependency>
5048
<dependency>
5149
<groupId>org.openscience.cdk</groupId>
5250
<artifactId>cdk-isomorphism</artifactId>
5351
<version>${project.version}</version>
54-
<scope>test</scope>
5552
</dependency>
5653
<dependency>
5754
<groupId>org.openscience.cdk</groupId>
5855
<artifactId>cdk-core</artifactId>
5956
<version>${project.version}</version>
60-
<scope>test</scope>
6157
</dependency>
6258
<dependency>
6359
<groupId>org.openscience.cdk</groupId>
6460
<artifactId>cdk-valencycheck</artifactId>
6561
<version>${project.version}</version>
66-
<scope>test</scope>
6762
</dependency>
6863
<dependency>
6964
<groupId>org.openscience.cdk</groupId>
@@ -166,6 +161,11 @@
166161
<type>test-jar</type>
167162
<scope>test</scope>
168163
</dependency>
164+
<dependency>
165+
<groupId>org.openscience.cdk</groupId>
166+
<artifactId>cdk-qsar</artifactId>
167+
<version>${project.version}</version>
168+
</dependency>
169169
<dependency>
170170
<groupId>org.openscience.cdk</groupId>
171171
<artifactId>cdk-qsar</artifactId>

tool/group/src/main/java/org/openscience/cdk/group/AtomRefinable.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import java.util.SortedSet;
3232
import java.util.TreeSet;
3333

34-
import org.openscience.cdk.CDKConstants;
3534
import org.openscience.cdk.interfaces.IAtom;
3635
import org.openscience.cdk.interfaces.IAtomContainer;
3736
import org.openscience.cdk.interfaces.IBond;
@@ -232,7 +231,7 @@ private void setupConnectionTable(IAtomContainer atomContainer) {
232231
connectionTable[atomIndex][i] = index;
233232
if (!ignoreBondOrders) {
234233
IBond bond = atomContainer.getBond(atom, connected);
235-
boolean isArom = bond.getFlag(CDKConstants.ISAROMATIC);
234+
boolean isArom = bond.isAromatic();
236235
int orderNumber = (isArom) ? 5 : bond.getOrder().numeric();
237236
bondOrders[atomIndex][i] = orderNumber;
238237

tool/group/src/main/java/org/openscience/cdk/group/BondRefinable.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import java.util.SortedSet;
3232
import java.util.TreeSet;
3333

34-
import org.openscience.cdk.CDKConstants;
3534
import org.openscience.cdk.interfaces.IAtomContainer;
3635
import org.openscience.cdk.interfaces.IBond;
3736

@@ -119,7 +118,7 @@ public Partition getInitialPartition() {
119118
// doesn't matter what it is, so long as it's constant
120119
boS = "1";
121120
} else {
122-
boolean isArom = bond.getFlag(CDKConstants.ISAROMATIC);
121+
boolean isArom = bond.isAromatic();
123122
int orderNumber = (isArom) ? 5 : bond.getOrder().numeric();
124123
boS = String.valueOf(orderNumber);
125124
}
@@ -168,7 +167,7 @@ private void setupConnectionTable(IAtomContainer atomContainer) {
168167
// doesn't matter what it is, so long as it's constant
169168
boS = "1";
170169
} else {
171-
boolean isArom = bond.getFlag(CDKConstants.ISAROMATIC);
170+
boolean isArom = bond.isAromatic();
172171
int orderNumber = (isArom) ? 5 : bond.getOrder().numeric();
173172
boS = String.valueOf(orderNumber);
174173
}

0 commit comments

Comments
 (0)