fix Bug TDI-21606:Method exceeding 65535 bytes limit while using tFileInputDelimited and tFileOutputMSXML
http://jira.talendforge.org/browse/TDI-21606 git-svn-id: http://talendforge.org/svn/tos/trunk@86816 f6f1c999-d317-4740-80b0-e6d1abc6f99e
This commit is contained in:
@@ -502,4 +502,32 @@ public class NodeUtil {
|
||||
return component.isDataAutoPropagated();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* DOC wliu
|
||||
* <p>
|
||||
* get the original connection instance className of the pamameter:conn.\n It is used to help optimize the code to
|
||||
* avoid 65535 bytes in a method
|
||||
* </p>
|
||||
* Notice: It is used in tFileOutputMSXML in TDI-21606
|
||||
*
|
||||
* @param connection
|
||||
* @return
|
||||
*/
|
||||
public static String getPrivateConnClassName(final IConnection conn) {
|
||||
// INode designedNode = node.getDesignSubjobStartNode();
|
||||
INode node = conn.getSource();
|
||||
if (node.isSubProcessStart() || !(NodeUtil.isDataAutoPropagated(node))) {
|
||||
return conn.getUniqueName();
|
||||
}
|
||||
List<? extends IConnection> listInConns = node.getIncomingConnections();
|
||||
IConnection inConnTemp = null;
|
||||
if (listInConns != null && listInConns.size() > 0) {
|
||||
inConnTemp = listInConns.get(0);
|
||||
if (inConnTemp.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
|
||||
return getPrivateConnClassName(inConnTemp);
|
||||
}
|
||||
}
|
||||
return ""; //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user