From: <raj...@us...> - 2008-08-10 19:30:41
|
Revision: 11972 http://cdk.svn.sourceforge.net/cdk/?rev=11972&view=rev Author: rajarshi Date: 2008-08-10 19:30:36 +0000 (Sun, 10 Aug 2008) Log Message: ----------- Cleaned up a PMD warning Modified Paths: -------------- cdk/trunk/src/main/org/openscience/cdk/config/TXTBasedAtomTypeConfigurator.java Modified: cdk/trunk/src/main/org/openscience/cdk/config/TXTBasedAtomTypeConfigurator.java =================================================================== --- cdk/trunk/src/main/org/openscience/cdk/config/TXTBasedAtomTypeConfigurator.java 2008-08-10 04:47:34 UTC (rev 11971) +++ cdk/trunk/src/main/org/openscience/cdk/config/TXTBasedAtomTypeConfigurator.java 2008-08-10 19:30:36 UTC (rev 11972) @@ -98,10 +98,10 @@ break; } if (!string.startsWith("#")) { - String name = ""; - String rootType = ""; - int atomicNumber = 0, colorR = 0, colorG = 0, colorB = 0; - double mass = 0.0, vdwaals = 0.0, covalent = 0.0; + String name; + String rootType; + int atomicNumber, colorR, colorG, colorB; + double mass, covalent; tokenizer = new StringTokenizer(string, "\t ,;"); int tokenCount = tokenizer.countTokens(); @@ -110,7 +110,7 @@ rootType = tokenizer.nextToken(); String san = tokenizer.nextToken(); String sam = tokenizer.nextToken(); - String svdwaals = tokenizer.nextToken(); + tokenizer.nextToken(); // skip the vdw radius value String scovalent = tokenizer.nextToken(); String sColorR = tokenizer.nextToken(); String sColorG = tokenizer.nextToken(); @@ -118,7 +118,6 @@ try { mass = new Double(sam); - vdwaals = new Double(svdwaals); covalent = new Double(scovalent); atomicNumber = Integer.parseInt(san); colorR = Integer.parseInt(sColorR); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |