Helou!
Mislim da nam nedostaje tema u kojoj bi ispisivali kratke idiotarije koje vecina nas svakodnevno susrece i komentirali ih.
Danas sam naletio na jedan od zabavnijih refactoringa na kodu od kolege, pa evo da zapocnem temu, nadam se da ce zazivjeti.
Mislim da neka pravila kulture poput "nema flejmanja" i "nema spama" ne moram ni spominjati.
// Dear Santa, all I want for christmas is a toArray() that returns an array of the Generic type and not just Object...
// Edit by deus: Santa has fullfilled your wish. Now dance for him, bitch! :-D
return bTextLines.toArray(new BText[bTextLines.size()]);
/*
BText[] bTextArray = new BText[bTextLines.size()];
for(int t = 0; t < bTextLines.size() ; t++){
bTextArray[t] = bTextLines.get(t);
}
return bTextArray;
*/