public ArrayList PreProcessingBean(StringBuffer rawTextIn, GlobalVariable objGlobalVariable_)
{
StringBuffer PPTextOut = new StringBuffer();
StringBuffer PPTextTemp = new StringBuffer();
System.out.println("\n\nINPUT TO PP BEAN\n" + rawTextIn);
CleaningAtFirstLevel cleanRawText = new CleaningAtFirstLevel(rawTextIn);
PPTextTemp =cleanRawText.FirstLevelRawTextCleaning();
}
我正在从rawTextIn
第 6 行输入一个字符串。我正在使用PPTextTemp
变量,并且在程序中我到处都在使用它。那么我可以rawTextIn
在任何地方使用来节省内存吗?或者这段代码很好,或者我必须分配新变量(PPTextTemp
)?