KT-4727 J2K: Convert Java code copied from browser or other sources

#KT-4727 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-05-05 18:41:49 +03:00
parent 4cbb098671
commit cca3237e46
40 changed files with 655 additions and 68 deletions
@@ -0,0 +1,15 @@
import java.io.File;
import java.util.ArrayList;
import java.util.List;
class JavaClass {
void foo(File file, List<String> target) {
ArrayList<String> list = new ArrayList<String>();
if (file != null) {
list.add(file.getName());
}
if (target != null) {
target.addAll(list);
}
}
}