From: <bea...@us...> - 2006-10-14 15:53:50
|
Revision: 279 http://svn.sourceforge.net/cishell/?rev=279&view=rev Author: bearsfan Date: 2006-10-14 08:53:43 -0700 (Sat, 14 Oct 2006) Log Message: ----------- Added check in 'getConverter' method, if the inType==outType then return a 'null' converter. Modified Paths: -------------- trunk/core/org.cishell.reference/src/org/cishell/reference/service/conversion/DataConversionServiceImpl.java Modified: trunk/core/org.cishell.reference/src/org/cishell/reference/service/conversion/DataConversionServiceImpl.java =================================================================== --- trunk/core/org.cishell.reference/src/org/cishell/reference/service/conversion/DataConversionServiceImpl.java 2006-10-13 23:23:12 UTC (rev 278) +++ trunk/core/org.cishell.reference/src/org/cishell/reference/service/conversion/DataConversionServiceImpl.java 2006-10-14 15:53:43 UTC (rev 279) @@ -230,6 +230,10 @@ Vertex srcVertex = (Vertex)dataTypeToVertex.get(inType); Vertex tgtVertex = (Vertex)dataTypeToVertex.get(outType); + if (srcVertex.equals(tgtVertex)) { + return new ConverterImpl(bContext, ciContext, new ServiceReference[0]); + } + if (srcVertex != null && tgtVertex != null) { DijkstraShortestPath shortestPathAlg = new DijkstraShortestPath(graph); List edgeList = shortestPathAlg.getPath(srcVertex, tgtVertex); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |