Вот чем ваабще надо думать и о чем чтоб такое написать.

    Date: 01/22/09 (Code WTF)    Keywords: no keywords


    list = new ArrayList(); 

    long productType = __SOME__WAY__DEFINED;
    switch (productType) {
    case /**some_comment_prefix_10*/ 1:
    list.add(this.getClientsDictionary("some_code_prefix_IMPORTED")); //Иностранный
    list.add(this.getClientsDictionary("some_code_prefix_HOME.MADE")); //Отечественный
    break;
    case /**some_comment_prefix_11*/ 2:
    list.add(this.getClientsDictionary("some_code_prefix_IMPORTED")); //Иностранный
    list.add(this.getClientsDictionary("some_code_prefix_HOME.MADE")); //Отечественный
    break;
    case /**some_comment_prefix_12*/ 3:
    list.add(this.getClientsDictionary("some_code_prefix_IMPORTED")); //Иностранный
    list.add(this.getClientsDictionary("some_code_prefix_HOME.MADE")); //Отечественный
    break;

    case /**some_comment_prefix_13*/ 4:
    list.add(this.getClientsDictionary("some_code_prefix_IMPORTED")); //Иностранный
    //list.add(this.getClientsDictionary("some_code_prefix_HOME.MADE")); //Отечественный
    break;

    case /**some_comment_prefix_14*/ 5:
    list.add(this.getClientsDictionary("some_code_prefix_IMPORTED")); //Иностранный
    list.add(this.getClientsDictionary("some_code_prefix_HOME.MADE")); //Отечественный
    break;

    case /**some_comment_prefix_15*/ 6:
    list.add(this.getClientsDictionary("some_code_prefix_IMPORTED")); //Иностранный
    list.add(this.getClientsDictionary("some_code_prefix_HOME.MADE")); //Отечественный
    break;

    case /**some_comment_prefix_16*/ 7:
    list.add(this.getClientsDictionary("some_code_prefix_IMPORTED")); //Иностранный
    list.add(this.getClientsDictionary("some_code_prefix_HOME.MADE")); //Отечественный
    break;

    case /**some_comment_prefix_17*/ 8:
    list.add(this.getClientsDictionary("some_code_prefix_IMPORTED")); //Иностранный
    list.add(this.getClientsDictionary("some_code_prefix_HOME.MADE")); //Отечественный
    break;

    case /**some_comment_prefix_18*/ 9:
    list.add(this.getClientsDictionary("some_code_prefix_IMPORTED")); //Иностранный
    list.add(this.getClientsDictionary("some_code_prefix_HOME.MADE")); //Отечественный
    break;

    case /**some_comment_prefix_19*/ 10:
    list.add(this.getClientsDictionary("some_code_prefix_IMPORTED")); //Иностранный
    list.add(this.getClientsDictionary("some_code_prefix_HOME.MADE")); //Отечественный
    break;

    case /**some_comment_prefix_20*/ 11:
    list.add(this.getClientsDictionary("some_code_prefix_IMPORTED")); //Иностранный
    list.add(this.getClientsDictionary("some_code_prefix_HOME.MADE")); //Отечественный
    break;

    default:
    list = Collections.EMPTY_LIST;
    break;
    }

    Source: http://community.livejournal.com/code_wtf/155038.html

« Глубина-глубин... || Кошмар на... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home