From: <eg...@us...> - 2009-01-30 17:23:38
|
Revision: 14017 http://cdk.svn.sourceforge.net/cdk/?rev=14017&view=rev Author: egonw Date: 2009-01-30 17:23:29 +0000 (Fri, 30 Jan 2009) Log Message: ----------- removed "throws CDKException" from method StructureResonanceGenerator.setReactions(List<IReactionProcess> newReactionsList). And depending methods as StabilizationCharges.calculatePositive. It was producing some incoherences: org.openscience.cdk.charges.StabilizationCharges row 83: Unreachable catch block for CDKException. This exception is never thrown from the try statement body. git-svn-id: https://cdk.svn.sourceforge.net/svnroot/cdk/cdk/trunk@12339 eb4e18e3-b210-0410-a6ab-dec725e4b171 Author: miguelrojasch <miguelrojasch@eb4e18e3-b210-0410-a6ab-dec725e4b171> Modified Paths: -------------- cdk/trunk/src/main/org/openscience/cdk/charges/StabilizationCharges.java Modified: cdk/trunk/src/main/org/openscience/cdk/charges/StabilizationCharges.java =================================================================== --- cdk/trunk/src/main/org/openscience/cdk/charges/StabilizationCharges.java 2009-01-30 17:22:33 UTC (rev 14016) +++ cdk/trunk/src/main/org/openscience/cdk/charges/StabilizationCharges.java 2009-01-30 17:23:29 UTC (rev 14017) @@ -76,14 +76,10 @@ // only must be generated all structures which stabilize the atom in question. StructureResonanceGenerator gRI = new StructureResonanceGenerator(); - try { - List<IReactionProcess> reactionList = gRI.getReactions(); - reactionList.add(new HyperconjugationReaction()); - gRI.setReactions(reactionList); - } catch (CDKException e) { - e.printStackTrace(); - } - IAtomContainerSet resonanceS = gRI.getStructures((IMolecule) atomContainer); + List<IReactionProcess> reactionList = gRI.getReactions(); + reactionList.add(new HyperconjugationReaction()); + gRI.setReactions(reactionList); + IAtomContainerSet resonanceS = gRI.getStructures((IMolecule) atomContainer); IAtomContainerSet containerS = gRI.getContainers((IMolecule) atomContainer); if(resonanceS.getAtomContainerCount() < 2)// meaning it was not find any resonance structure return 0.0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |