From: <eg...@us...> - 2008-07-31 20:28:28
|
Revision: 11821 http://cdk.svn.sourceforge.net/cdk/?rev=11821&view=rev Author: egonw Date: 2008-07-31 20:28:23 +0000 (Thu, 31 Jul 2008) Log Message: ----------- Fixed a few PDM warnings Modified Paths: -------------- cdk/branches/egonw-atowl/src/main/org/openscience/cdk/config/atomtypes/OWLAtomTypeMappingHandler.java Modified: cdk/branches/egonw-atowl/src/main/org/openscience/cdk/config/atomtypes/OWLAtomTypeMappingHandler.java =================================================================== --- cdk/branches/egonw-atowl/src/main/org/openscience/cdk/config/atomtypes/OWLAtomTypeMappingHandler.java 2008-07-31 18:18:15 UTC (rev 11820) +++ cdk/branches/egonw-atowl/src/main/org/openscience/cdk/config/atomtypes/OWLAtomTypeMappingHandler.java 2008-07-31 20:28:23 UTC (rev 11821) @@ -73,10 +73,8 @@ } private void endAtomTypeElement(String local) { - if ("Thing".equals(local)) { - if (toType != null && fromType != null) { - atomTypeMappings.put(fromType, toType); - } + if ("Thing".equals(local) && toType != null && fromType != null) { + atomTypeMappings.put(fromType, toType); } } @@ -94,14 +92,14 @@ if ("Thing".equals(local)) { toType = null; fromType = atts.getValue("rdf:about"); - fromType = fromType.substring(fromType.indexOf("#")+1); + fromType = fromType.substring(fromType.indexOf('#')+1); } } private void startAtomTypeMappingElement(String local, Attributes atts) { if ("mapsToType".equals(local) || "equivalentAsType".equals(local)) { toType = atts.getValue("rdf:resource"); - toType = toType.substring(toType.indexOf("#")+1); + toType = toType.substring(toType.indexOf('#')+1); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |