我必须初始化一个大的常量数据结构,但我收到编译器错误消息:
The code of constructor MS_XXX(String) is exceeding the 65535 bytes limit
public class MD_XXX {
public List<String> allElements;
public MD_XXX(String language) {
this.allElements = new ArrayList<String>();
if (...) {
/* 0 */ allElements.add("some text0");
/* 1 */ allElements.add("some text1");
/* 2 */ allElements.add("some text2");
.. many more lines here
最佳答案
Do I really have to break this up into several class files
https://stackoverflow.com/questions/8277650/