Skip to content
Permalink
Browse files

Also the last parameter must be an IAtom

Change-Id: Ieaf5ae528623e558b2ab0eb5d240d9cfa9035bff
  • Loading branch information...
egonw committed May 15, 2012
1 parent 2a2aecc commit 3d0b0e5f329e9256638ce18e4b5024e2d348474a
@@ -421,7 +421,8 @@ private String getNoConstructorFoundMessage(Class clazz) {
} else {
// the IBond(IAtom[]) constructor
boolean allIAtom = true;
for (int i=0; i<(params.length-1) && allIAtom; i++) {
for (int i=0; i<params.length && allIAtom; i++) {
System.out.println(params[i]);
if (!(params[i] instanceof IAtom)) allIAtom = false;
}
if (allIAtom) {
@@ -414,7 +414,7 @@ private String getNoConstructorFoundMessage(Class clazz) {
} else {
// the IBond(IAtom[]) constructor
boolean allIAtom = true;
for (int i=0; i<(params.length-1) && allIAtom; i++) {
for (int i=0; i<params.length && allIAtom; i++) {
if (!(params[i] instanceof IAtom)) allIAtom = false;
}
if (allIAtom) {

0 comments on commit 3d0b0e5

Please sign in to comment.
You can’t perform that action at this time.