Skip to content

Commit

Permalink
includes suggestions from John May
Browse files Browse the repository at this point in the history
#36

Signed-off-by: John May <john.wilkinsonmay@gmail.com>
  • Loading branch information
ostueker authored and johnmay committed Aug 4, 2014
1 parent 3450bf1 commit f5374a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 31 deletions.
@@ -1,9 +1,5 @@
/* $RCSfile$
* $Author$
* $Date$
* $Revision$
*
* Copyright (C) 2004-2007 The Chemistry Development Kit (CDK) project
/*
* Copyright (C) 2014 The Chemistry Development Kit (CDK) project
*
* Contact: cdk-devel@lists.sourceforge.net
*
Expand Down Expand Up @@ -80,10 +76,7 @@ public String[] getNameExtensions() {
/** {@inheritDoc} */ @Override
@TestMethod("testMatches")
public boolean matches(int lineNumber, String line) {
if (line.indexOf("MOPAC2007") >= 0) {
return true;
}
return false;
return line.contains("MOPAC2007");
}

/** {@inheritDoc} */ @Override
Expand Down
@@ -1,9 +1,5 @@
/* $RCSfile$
* $Author$
* $Date$
* $Revision$
*
* Copyright (C) 2004-2007 The Chemistry Development Kit (CDK) project
/*
* Copyright (C) 2014 The Chemistry Development Kit (CDK) project
*
* Contact: cdk-devel@lists.sourceforge.net
*
Expand Down Expand Up @@ -80,10 +76,7 @@ public String[] getNameExtensions() {
/** {@inheritDoc} */ @Override
@TestMethod("testMatches")
public boolean matches(int lineNumber, String line) {
if (line.indexOf("MOPAC2009") >= 0) {
return true;
}
return false;
return line.contains("MOPAC2009");
}

/** {@inheritDoc} */ @Override
Expand Down
@@ -1,9 +1,5 @@
/* $RCSfile$
* $Author$
* $Date$
* $Revision$
*
* Copyright (C) 2004-2007 The Chemistry Development Kit (CDK) project
/*
* Copyright (C) 2014 The Chemistry Development Kit (CDK) project
*
* Contact: cdk-devel@lists.sourceforge.net
*
Expand Down Expand Up @@ -78,12 +74,9 @@ public String[] getNameExtensions() {
public String getWriterClassName() { return null; }

/** {@inheritDoc} */ @Override
@TestMethod("testMatches")
@TestMethod("matchesMopac2012")
public boolean matches(int lineNumber, String line) {
if (line.indexOf("MOPAC2012") >= 0) {
return true;
}
return false;
return line.contains("MOPAC2012");
}

/** {@inheritDoc} */ @Override
Expand Down

0 comments on commit f5374a0

Please sign in to comment.