Add script which was used to generate large class

This commit is contained in:
Mark Vainomaa 2017-03-26 18:46:23 +03:00
parent 5a0de0c0b9
commit 79becd205e

14
util/gen.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
generateMethod () {
local name="${1}"
echo -e " public void method_${name}(){\n System.out.println(\"method_${name}\");\n }"
}
cat > Test.java <<EOF
public class Test {
$(for s in `seq 1 100`; do generateMethod ${s}; done)
}
EOF
javac -source 1.8 -target 1.8 Test.java
rm Test.java