Skip to content

Commit

Permalink
Fixed a PMD warning: removed an underscore from a non-final var
Browse files Browse the repository at this point in the history
Change-Id: I22f17b64ebb97b605402b6636bfa02be5fcb1ac9

Signed-off-by: John May <john.wilkinsonmay@gmail.com>
  • Loading branch information
egonw authored and johnmay committed Dec 15, 2014
1 parent ceef23c commit 5282618
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,12 @@ && getIfBondIsNotRotatable(mol,
position = 0;
smooth = -2.86;
angle = 0;
int ya_counter = 0;
int yaCounter = 0;
List<IAtom> connAtoms;
for (double g3r = 0; g3r < limitSup; g3r = g3r + step) {
sum = 0;
for (Integer aBondsInCycloex : bondsInCycloex) {
ya_counter = 0;
yaCounter = 0;
angle = 0;
partial = 0;
position = aBondsInCycloex;
Expand All @@ -452,10 +452,10 @@ && getIfBondIsNotRotatable(mol,

connAtoms = mol.getConnectedAtomsList(cycloexBondAtom0);
for (IAtom connAtom : connAtoms) {
if (connAtom.equals(neighbour0)) ya_counter += 1;
if (connAtom.equals(neighbour0)) yaCounter += 1;
}

if (ya_counter > 0) {
if (yaCounter > 0) {
aA.set(cycloexBondAtom1.getPoint3d().x, cycloexBondAtom1.getPoint3d().y,
cycloexBondAtom1.getPoint3d().z);
aB.set(cycloexBondAtom0.getPoint3d().x, cycloexBondAtom0.getPoint3d().y,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ public void parserAtomBlock(XmlPullParser parser, IAtomContainer molecule) throw
}

public void parserCompoundInfoData(XmlPullParser parser, IAtomContainer molecule) throws Exception {
String urn_label = null;
String urn_name = null;
String urnLabel = null;
String urnName = null;
String sval = null;
while (parser.next() != XmlPullParser.END_DOCUMENT) {
if (parser.getEventType() == XmlPullParser.END_TAG) {
Expand All @@ -243,9 +243,9 @@ public void parserCompoundInfoData(XmlPullParser parser, IAtomContainer molecule
}
} else if (parser.getEventType() == XmlPullParser.START_TAG) {
if (EL_PROPS_URNNAME.equals(parser.getName())) {
urn_name = parser.nextText();
urnName = parser.nextText();
} else if (EL_PROPS_URNLABEL.equals(parser.getName())) {
urn_label = parser.nextText();
urnLabel = parser.nextText();
} else if (EL_PROPS_SVAL.equals(parser.getName())) {
sval = parser.nextText();
} else if (EL_PROPS_FVAL.equals(parser.getName())) {
Expand All @@ -255,8 +255,8 @@ public void parserCompoundInfoData(XmlPullParser parser, IAtomContainer molecule
}
}
}
if (urn_label != null & sval != null) {
String property = urn_label + (urn_name == null ? "" : " (" + urn_name + ")");
if (urnLabel != null & sval != null) {
String property = urnLabel + (urnName == null ? "" : " (" + urnName + ")");
molecule.setProperty(property, sval);
}
}
Expand Down

0 comments on commit 5282618

Please sign in to comment.