Add script which was used to generate large class
This commit is contained in:
parent
5a0de0c0b9
commit
79becd205e
14
util/gen.sh
Executable file
14
util/gen.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user