Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
877 commits
Select commit Hold shift + click to select a range
de8ca13
throw TransferException if transferToken or transfer failed
ithinker1991 Apr 29, 2019
0e3c863
add receipt result `TransferException`
ithinker1991 Apr 29, 2019
1cd20ae
fix check style
houlei1017 Apr 30, 2019
5f82f5d
Merge remote-tracking branch 'remotes/origin/develop' into feature/fi…
houlei1017 Apr 30, 2019
5fc87f2
Merge pull request #2172 from tronprotocol/feature/fix_http_2
renchenchang Apr 30, 2019
1a4d5f4
add test unit
ithinker1991 Apr 30, 2019
696914b
add tricky logic for refund energy
ithinker1991 May 4, 2019
410e532
set receipt result
ithinker1991 May 4, 2019
6996bfe
revise error log
ithinker1991 May 4, 2019
96d6a2c
add unit test
ithinker1991 May 4, 2019
99cb2ff
fix unit test
May 4, 2019
1246d58
fix log
May 5, 2019
22c9177
rm debug code
May 5, 2019
4b8f527
Merge branch 'develop' into stest_add_deferred_transaction_cases
May 5, 2019
99b8a6d
Merge pull request #2144 from tronprotocol/fast_forward_for_block
xxo1shine May 5, 2019
9761556
broadcasting transaction optimization
xxo1shine May 5, 2019
8e44f12
merge develop
xxo1shine May 5, 2019
92d2cbd
Trigger contract interface to increase support for transfer
houlei1017 May 5, 2019
4d0a2ef
Merge remote-tracking branch 'remotes/origin/develop' into feature/fi…
houlei1017 May 5, 2019
4dcb04b
delete useless parameters
houlei1017 May 5, 2019
6c5fb74
modify consumerInvToSpread logic
xxo1shine May 5, 2019
216f06a
Merge pull request #2175 from tronprotocol/feature/fix_http_2
renchenchang May 5, 2019
49539e8
add handle block log
xxo1shine May 5, 2019
30fe28c
add handle block log
xxo1shine May 5, 2019
705d8a6
Add stest http triggercontract call value and token value result check
May 5, 2019
f4851b1
Merge pull request #2173 from tronprotocol/feature/transfer_failed_re…
BlueHoopor May 5, 2019
d9e6304
add script to check sonar status
HuangZhengSi May 6, 2019
2c854f4
fix dailybuild error
MiraculousWang May 6, 2019
747e2c7
add log4j topic
xxo1shine May 6, 2019
cde8d7a
Merge pull request #2174 from tronprotocol/trx_adv
xxo1shine May 6, 2019
cad834b
Fix different result code
BlueHoopor May 6, 2019
5fcfc5a
Merge pull request #2177 from tronprotocol/feature/transfer_failed_re…
taihaofu May 6, 2019
6c3bd80
modify the thread number to config
lvs007 May 7, 2019
4cdb6cf
Merge pull request #2176 from tronprotocol/feature/addinSonarWebhook
HuangZhengSi May 7, 2019
5417fe9
fix dailybuild error
MiraculousWang May 7, 2019
1da0189
refactor: remove same code
ithinker1991 May 7, 2019
f86e424
Add too large call_token_Value in http deploy contract stest case
May 7, 2019
f32621f
add the log topic name
lvs007 May 7, 2019
d9b6db5
Merge pull request #2179 from tronprotocol/proto-valid-dev
lvs007 May 7, 2019
2b7486e
solve advservice multi thread problem
xxo1shine May 7, 2019
54c3d5a
Change delay transaction stest case to false
May 7, 2019
8861c8e
Merge branch 'develop' into stest_add_deferred_transaction_cases
May 7, 2019
9a3f337
Merge pull request #2180 from tronprotocol/trx_adv
xxo1shine May 7, 2019
295bf8d
revert deferred transaction
May 7, 2019
292f628
Add too long value in http stest case
May 7, 2019
51df34b
Merge pull request #2166 from tronprotocol/feature/new_excodehash
ithinker1991 May 7, 2019
2a67477
revert deferred transaction
May 7, 2019
ecfb234
change checkstyle report from CN to EN
HuangZhengSi May 8, 2019
9325214
remove proposal
May 8, 2019
88a448c
fix dailybuild eoor
MiraculousWang May 8, 2019
de0c79c
Merge pull request #2181 from tronprotocol/stest_add_deferred_transac…
wangzichichi May 8, 2019
198e095
fix the sonar
lvs007 May 8, 2019
6d2492e
modify testng.conf
MiraculousWang May 8, 2019
80929ad
fix dailybuild error
MiraculousWang May 8, 2019
5d05f79
solve deadlock problem
xxo1shine May 8, 2019
d4bc2e3
Merge pull request #2186 from tronprotocol/sync
xxo1shine May 8, 2019
5a14ac1
throw regonized exception instead of unknow exception
ithinker1991 May 8, 2019
4b1d363
rm useless import
ithinker1991 May 8, 2019
d80794d
remove unuse space
May 8, 2019
2e8db50
Merge branch 'develop' of https://github.com/tronprotocol/java-tron i…
May 8, 2019
0d39b3a
Merge pull request #2187 from tronprotocol/feature/transfer_failed_re…
BlueHoopor May 8, 2019
6405496
Merge pull request #2189 from tronprotocol/fix/redesign_exception
BlueHoopor May 8, 2019
adb7ee5
Note the delay transaction test case
May 8, 2019
d45774e
merge develop
May 8, 2019
65924f5
Merge branch 'revertCode' of https://github.com/tronprotocol/java-tro…
May 8, 2019
1ee9386
remove cancel deferred transaction
May 8, 2019
23da246
Note the delay transaction test case
May 8, 2019
ed82995
Merge pull request #2190 from tronprotocol/revertCode
DorianRust May 9, 2019
eb25951
fix dailybuild error
MiraculousWang May 9, 2019
3d3c7e9
Merge branch 'develop' of https://github.com/tronprotocol/java-tron i…
xxo1shine May 9, 2019
0bd5672
fix dailybuild error
MiraculousWang May 9, 2019
8c9f6d8
modify sonar problem
xxo1shine May 9, 2019
e1bd02f
Merge pull request #2185 from tronprotocol/add_http_stest_case
MiraculousWang May 9, 2019
310e82b
Merge pull request #2191 from tronprotocol/sonar_repair
xxo1shine May 9, 2019
c1181f2
modify sonar problem
xxo1shine May 9, 2019
8bfdbe0
Merge pull request #2193 from tronprotocol/sonar_repair
xxo1shine May 9, 2019
a3f0054
modify sonar problem
xxo1shine May 9, 2019
2d0cf03
modify checkstyle
xxo1shine May 9, 2019
4dcec7b
Merge pull request #2195 from tronprotocol/sonar_repair
xxo1shine May 9, 2019
4009293
checkstyle
llwslc May 9, 2019
b3499d9
Merge branch 'develop' of https://github.com/tronprotocol/java-tron i…
xxo1shine May 9, 2019
fe75209
fix the checkstyle
lvs007 May 9, 2019
5b25900
Merge pull request #2196 from tronprotocol/checkstyle_repair
xxo1shine May 9, 2019
cb8d9ae
Merge pull request #2197 from tronprotocol/feature/trigger_constant_c…
xxo1shine May 9, 2019
a822859
Merge pull request #2198 from tronprotocol/fix_checkstyle_dev
xxo1shine May 9, 2019
f36b159
Add constant contract in http stest case and change check style
May 9, 2019
cc92d35
refine checkstyle for TvmTestUtils
taihaofu May 9, 2019
14e2481
Merge pull request #2200 from tronprotocol/stest_add_deferred_transac…
wangqqqqq May 9, 2019
c2e74b3
Merge pull request #2199 from tronprotocol/refine_checkstyle_TvmTestU…
HuangZhengSi May 9, 2019
05208da
fix code style
houlei1017 May 9, 2019
f598a6a
update code style
houlei1017 May 10, 2019
cbb1131
Merge pull request #2202 from tronprotocol/feature/fix_http_2
renchenchang May 10, 2019
c3ce6a7
modify dailybuild error
MiraculousWang May 10, 2019
5bce460
change code style
sean-liu55 May 10, 2019
1599b87
change code style
sean-liu55 May 10, 2019
96b9f68
style: fix check style for vm
CodeNinjaEvan May 10, 2019
ce9e9bd
Merge pull request #2203 from tronprotocol/add_http_stest_case
MiraculousWang May 10, 2019
54c67aa
style: fix check style
CodeNinjaEvan May 10, 2019
9e22477
fix proposal bug
May 10, 2019
6c633f3
fix proposal
May 10, 2019
aee1442
Merge branch 'develop' into checkstyle_rule_modify
HuangZhengSi May 10, 2019
a02cabf
remove VariableDeclarationUsageDistance check in checkstyle
HuangZhengSi May 10, 2019
75ef4e3
Revert "style: fix check style"
CodeNinjaEvan May 10, 2019
a2e4a91
style: fix check style
CodeNinjaEvan May 10, 2019
6a37b52
Merge pull request #2209 from tronprotocol/fixProposalBug
DorianRust May 10, 2019
3f1bb96
Merge pull request #2208 from tronprotocol/checkstyle_rule_modify
HuangZhengSi May 13, 2019
3d4858d
fix struct of read me
May 13, 2019
a1449a7
Merge pull request #2205 from tronprotocol/feature/change-code-style-v2
renchenchang May 13, 2019
cd38083
add toc
shydesky May 13, 2019
0fac009
fix
May 13, 2019
fe76d72
fix
May 13, 2019
45ce6d0
mdf toc
shydesky May 13, 2019
0b5209b
Update README.md
DorianRust May 13, 2019
84eacb5
Update README.md
DorianRust May 13, 2019
9ab86c0
Update README.md
DorianRust May 13, 2019
044a90e
Update README.md
DorianRust May 13, 2019
aadca17
Update README.md
DorianRust May 13, 2019
54f34a9
Update README.md
DorianRust May 13, 2019
e2611c0
Update README.md
DorianRust May 13, 2019
8fbdb76
fix
May 13, 2019
74ab30e
fix
May 13, 2019
cebb8c0
fix
May 13, 2019
485f66a
fix
May 13, 2019
9677aee
fix
May 13, 2019
6e8ee74
fix
May 13, 2019
a4a417b
Update README.md
DorianRust May 13, 2019
3b3abba
Update README.md
DorianRust May 13, 2019
6251222
Update README.md
DorianRust May 13, 2019
d065cbf
Update README.md
DorianRust May 13, 2019
e6c14c5
Update README.md
DorianRust May 13, 2019
a53c35e
Update run.md
DorianRust May 13, 2019
6cef09c
Update run.md
DorianRust May 13, 2019
291b9ef
Update README.md
DorianRust May 13, 2019
00d9af4
Update README.md
DorianRust May 13, 2019
3292e9a
fix
May 13, 2019
ff5ffc1
modify sonar bug
xxo1shine May 14, 2019
80e429c
modify sonar bug
xxo1shine May 14, 2019
9ed9d1a
Merge pull request #2212 from tronprotocol/sonar_repair
xxo1shine May 14, 2019
6f53f8c
modify sonar bug
xxo1shine May 14, 2019
9307fb7
Merge pull request #2207 from tronprotocol/check_style_vm
CodeNinjaEvan May 14, 2019
57047b6
Revert "style: fix check style"
CodeNinjaEvan May 14, 2019
5f0624b
style: fix check style
CodeNinjaEvan May 14, 2019
ad691ae
Revert "Modify sonar bug"
xxo1shine May 14, 2019
4117f4d
Solving get long type data takes too long time
houlei1017 May 14, 2019
61b492e
Revert "change check style vm"
xxo1shine May 15, 2019
4835b3c
Merge pull request #2217 from tronprotocol/revert-2207-check_style_vm
xxo1shine May 15, 2019
b1d0e06
Merge pull request #2215 from tronprotocol/revert-2212-sonar_repair
xxo1shine May 15, 2019
5c51693
Revert "Revert "Modify sonar bug""
xxo1shine May 15, 2019
f68fba9
modify sonar problem
xxo1shine May 15, 2019
285fcae
Merge remote-tracking branch 'remotes/origin/develop' into feature/fi…
houlei1017 May 15, 2019
60834a4
modify sonar problem
xxo1shine May 15, 2019
bd2137e
Update README.md
DorianRust May 15, 2019
948cd2c
Revert "Revert "change check style vm""
xxo1shine May 15, 2019
77da609
Merge pull request #2218 from tronprotocol/revert-2215-revert-2212-so…
xxo1shine May 15, 2019
6bbf1d1
merge develop
xxo1shine May 15, 2019
8b6d959
Merge pull request #2213 from tronprotocol/sonar_repair
xxo1shine May 15, 2019
7de62e0
Merge pull request #2220 from tronprotocol/revert-2217-revert-2207-ch…
CodeNinjaEvan May 15, 2019
5e815a7
Merge pull request #2219 from tronprotocol/feature/fix_http_2
renchenchang May 15, 2019
31acb68
Update README.md
DorianRust May 15, 2019
6ddf861
Update README.md
DorianRust May 15, 2019
b106bdf
Update README.md
DorianRust May 15, 2019
0fdb6a7
Update README.md
DorianRust May 15, 2019
60b2c29
Update README.md
DorianRust May 15, 2019
af6e14a
Update README.md
DorianRust May 16, 2019
f079926
Create quickstart.md
DorianRust May 16, 2019
9c9a0cb
fix
May 16, 2019
8706ab4
Update quickstart.md
DorianRust May 16, 2019
3bb8251
Update quickstart.md
DorianRust May 16, 2019
9657acb
Update quickstart.md
DorianRust May 16, 2019
5204c7e
Update quickstart.md
DorianRust May 16, 2019
4ac0f78
Update quickstart.md
DorianRust May 16, 2019
b0b2daf
Update quickstart.md
DorianRust May 16, 2019
a3b092c
Update quickstart.md
DorianRust May 16, 2019
3b49e71
Update quickstart.md
DorianRust May 16, 2019
4fc55be
Update quickstart.md
DorianRust May 16, 2019
733e264
Update quickstart.md
DorianRust May 16, 2019
832e544
Merge pull request #2214 from tronprotocol/check_style_vm
CodeNinjaEvan May 16, 2019
986e6ec
modify generate block logic
xxo1shine May 16, 2019
36402c3
Merge branch 'develop' of https://github.com/tronprotocol/java-tron i…
xxo1shine May 16, 2019
6cf5205
fix
May 17, 2019
76e90e2
Merge pull request #2225 from tronprotocol/readMeFix
DorianRust May 17, 2019
d9eee69
fix
May 17, 2019
a7052aa
Merge pull request #2226 from tronprotocol/readMeFix
DorianRust May 17, 2019
9a61dbf
update read me
May 17, 2019
471251b
Merge pull request #2227 from tronprotocol/readMeFix
jiangyy0824 May 17, 2019
85156ab
Merge pull request #2221 from tronprotocol/witness_gblock
xxo1shine May 17, 2019
a7627cf
Merge branch 'develop' into addinCircleCI
HuangZhengSi May 20, 2019
0f9ed6c
remove circleci task
HuangZhengSi May 20, 2019
b3d7e27
remove circleci task
HuangZhengSi May 20, 2019
ec8d3b2
Merge pull request #2229 from tronprotocol/addinCircleCI
HuangZhengSi May 20, 2019
18d52ab
fix if key isn't exist thrown null exception
houlei1017 May 22, 2019
8845e3c
abi is a optional parameter when deploy contract
houlei1017 May 23, 2019
4351e0a
Avoid null pointer exceptions if no set
houlei1017 May 23, 2019
e3eefb0
add hard fork exception
ithinker1991 May 23, 2019
172bcf0
fix if key isn't exist thrown null exception
houlei1017 May 22, 2019
24a0445
fix programPrecompile compile return byte[0]
ithinker1991 May 24, 2019
1aabca0
fix code style
houlei1017 May 24, 2019
c9c1b55
fix code style
ithinker1991 May 24, 2019
c3982c6
fix code style
ithinker1991 May 24, 2019
5015fbe
fix http interface 500 error
houlei1017 May 24, 2019
5a57b38
Merge remote-tracking branch 'remotes/origin/release_3.6' into HotFix…
houlei1017 May 24, 2019
b248104
create2 contract when exitingAccount
ithinker1991 May 24, 2019
328fe4f
add rate limit
May 27, 2019
b9466c3
Merge pull request #2245 from tronprotocol/HotFix/ConnectLimit
DorianRust May 27, 2019
86df04b
fix unfreezeDelegate error
sean-liu55 May 24, 2019
1a1a72e
Forbid delegating resource to contractAddress
sean-liu55 May 24, 2019
18064e5
ignore unfreeze resource from contractAddress
sean-liu55 May 27, 2019
1b5adad
fix conflict in test
sean-liu55 May 27, 2019
bda9aaf
revert test
sean-liu55 May 27, 2019
a351d22
Merge pull request #2246 from tronprotocol/feature/fix_delegated_reso…
renchenchang May 27, 2019
6fc70cb
clear delegated resource
ithinker1991 May 27, 2019
25dbeb5
add rate limit
May 27, 2019
89d2472
fix sonar error
houlei1017 May 28, 2019
1b88a8e
Merge pull request #2247 from tronprotocol/hotfix/clear_resourse
BlueHoopor May 28, 2019
52faeab
Merge pull request #2249 from tronprotocol/HotFix/ConnectLimit
BlueHoopor May 28, 2019
3df022e
Merge pull request #2250 from tronprotocol/HotFix/fix_http_2
ithinker1991 May 28, 2019
8f5f8dd
fix dup code
ithinker1991 May 27, 2019
367a248
code style
sean-liu55 May 28, 2019
c003145
code style
sean-liu55 May 28, 2019
26653d1
rm useless code
sean-liu55 May 28, 2019
5315272
Merge pull request #2252 from tronprotocol/feature/fix_delegated_reso…
sean-liu55 May 28, 2019
b83d2d0
Merge pull request #2251 from tronprotocol/hotfix/fix_sonar
BlueHoopor May 28, 2019
7b3bd82
Merge branch 'develop' into release_3.6
May 28, 2019
3e3548d
code conflict
May 28, 2019
3d50cdd
Merge pull request #2256 from tronprotocol/codeConflict
ithinker1991 May 28, 2019
75ec51b
revise code
ithinker1991 May 28, 2019
dce7fe8
Merge pull request #2257 from tronprotocol/hotfix/fix_code_style
ithinker1991 May 28, 2019
8ca22a1
code style
sean-liu55 May 28, 2019
55a2066
create2 new storage-key
ithinker1991 May 28, 2019
23efa4f
fix conflict in test
sean-liu55 May 28, 2019
b4a5252
just create2 add trxhash
ithinker1991 May 28, 2019
f52e251
format code
sean-liu55 May 28, 2019
33a6f21
Merge pull request #2258 from tronprotocol/feature/fix_delegated_reso…
renchenchang May 28, 2019
3a0036b
fix npe when contract is null
ithinker1991 May 28, 2019
cd7c24e
update addrHash
BlueHoopor May 28, 2019
1b8cea5
Merge branch 'hotfix/new_storage_create2' of https://github.com/tronp…
BlueHoopor May 28, 2019
73d7536
Merge pull request #2259 from tronprotocol/hotfix/new_storage_create2
CodeNinjaEvan May 28, 2019
257bd7c
fix the bug: contract A create contract B, after A suicide, when call…
tjchern May 29, 2019
479bb32
format code
sean-liu55 May 29, 2019
aad2004
Merge pull request #2263 from tronprotocol/feature/fix_delegated_reso…
sean-liu55 May 29, 2019
f6a572a
format code
sean-liu55 May 29, 2019
ae5517f
Merge pull request #2264 from tronprotocol/feature/fix_delegated_reso…
sean-liu55 May 29, 2019
541a033
Merge pull request #2262 from tronprotocol/hotfix/fix_creator_is_null
CodeNinjaEvan May 29, 2019
4fcebe2
fix sonar
CodeNinjaEvan May 29, 2019
9a4f9f8
Merge pull request #2265 from tronprotocol/Hotfix/fix_creator_is_null…
tjchern May 29, 2019
b7b31fb
create2 new storage-key
ithinker1991 May 28, 2019
dfff2c7
update condition
BlueHoopor May 29, 2019
c4275b8
change version
ithinker1991 May 29, 2019
a458075
Merge pull request #2267 from tronprotocol/hotfix/new_storage_create2_1
BlueHoopor May 29, 2019
7278761
Merge pull request #2268 from tronprotocol/change_version
BlueHoopor May 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 9 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ jobs:
- checkout
- run:
name: multi_os_result
command: curl http://60.205.215.34/multi_os_result
command: echo "curl http://60.205.215.34/multi_os_result"
#
# - run:
# name: Daily Build Report
# command: curl http://60.205.215.34/Daily_Build_Task_Report
#
# - run:
# name: Download Links
# command: sh DownloadLinks.sh

- run:
name: Daily Build Report
command: curl http://60.205.215.34/Daily_Build_Task_Report

- run:
name: Download Links
command: sh DownloadLinks.sh
328 changes: 35 additions & 293 deletions README.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ dependencies {

compile "io.vavr:vavr:0.9.2"
compile group: 'org.pf4j', name: 'pf4j', version: '2.5.0'
compile group: 'org.zeromq', name: 'jeromq', version: '0.5.0'

}

check.dependsOn 'lint'
Expand Down
84 changes: 84 additions & 0 deletions build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# How to Build

## Prepare dependencies

* JDK 1.8 (JDK 1.9+ are not supported yet)
* On Linux Ubuntu system (e.g. Ubuntu 16.04.4 LTS), ensure that the machine has [__Oracle JDK 8__](https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04), instead of having __Open JDK 8__ in the system. If you are building the source code by using __Open JDK 8__, you will get [__Build Failed__](https://github.com/tronprotocol/java-tron/issues/337) result.
* Open **UDP** ports for connection to the network
* **MINIMUM** 2 ENERGY Cores

## Build and Deploy automatically using scripts

- Please take a look at the [Tron Deployment Scripts](https://github.com/tronprotocol/TronDeployment) repository.

## Getting the code with git

* Use Git from the Terminal, see the [Setting up Git](https://help.github.com/articles/set-up-git/) and [Fork a Repo](https://help.github.com/articles/fork-a-repo/) articles.
* develop branch: the newest code
* master branch: more stable than develop.
In the shell command, type:
```bash
git clone https://github.com/tronprotocol/java-tron.git
git checkout -t origin/master
```

* For Mac, you can also install **[GitHub for Mac](https://mac.github.com/)** then **[fork and clone our repository](https://guides.github.com/activities/forking/)**.

* If you'd rather not use Git, [Download the ZIP](https://github.com/tronprotocol/java-tron/archive/develop.zip)

## Including java-tron as dependency

* If you don't want to checkout the code and build the project, you can include it directly as a dependency

**Using gradle:**

```
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.github.tronprotocol:java-tron:develop-SNAPSHOT'
}
```

**Using maven:**

```xml
...
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
...
<dependency>
<groupId>com.github.tronprotocol</groupId>
<artifactId>java-tron</artifactId>
<version>develop-SNAPSHOT</version><!--You can use any of the tag/branch name available-->
</dependency>
```




## Building from source code

* Build in the Terminal

```bash
cd java-tron
./gradlew build
```


* Build in [IntelliJ IDEA](https://www.jetbrains.com/idea/) (community version is enough):

**Please run ./gradlew build once to build the protocol files**

1. Start IntelliJ. Select `File` -> `Open`, then locate to the java-tron folder which you have git cloned to your local drive. Then click `Open` button on the right bottom.
2. Check on `Use auto-import` on the `Import Project from Gradle` dialog. Select JDK 1.8 in the `Gradle JVM` option. Then click `OK`.
3. IntelliJ will open the project and start gradle syncing, which will take several minutes, depending on your network connection and your IntelliJ configuration
4. Enable Annotations, `Preferences` -> Search `annotations` -> check `Enable Annotation Processing`.
5. After the syncing finished, select `Gradle` -> `Tasks` -> `build`, and then double click `build` option.

154 changes: 77 additions & 77 deletions config/checkstyle/checkStyleAll.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<property name="charset" value="UTF-8"/>

<property name="severity" value="warning"/>

<!--<property name="localeLanguage" value="en"/>-->
<property name="fileExtensions" value="java, properties, xml"/>
<!-- Checks for whitespace -->
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
Expand Down Expand Up @@ -108,51 +108,51 @@
<property name="tokens" value="METHOD_REF"/>
<property name="option" value="nl"/>
</module>
<module name="PackageName">
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
<message key="name.invalidPattern"
value="Package name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="TypeName">
<message key="name.invalidPattern"
value="Type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="MemberName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern"
value="Member name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="ParameterName">
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<message key="name.invalidPattern"
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="CatchParameterName">
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<message key="name.invalidPattern"
value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="LocalVariableName">
<property name="tokens" value="VARIABLE_DEF"/>
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
<message key="name.invalidPattern"
value="Local variable name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="ClassTypeParameterName">
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
<message key="name.invalidPattern"
value="Class type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="MethodTypeParameterName">
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
<message key="name.invalidPattern"
value="Method type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="InterfaceTypeParameterName">
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
<message key="name.invalidPattern"
value="Interface type name ''{0}'' must match pattern ''{1}''."/>
</module>
<!--<module name="PackageName">-->
<!--<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>-->
<!--<message key="name.invalidPattern"-->
<!--value="Package name ''{0}'' must match pattern ''{1}''."/>-->
<!--</module>-->
<!--<module name="TypeName">-->
<!--<message key="name.invalidPattern"-->
<!--value="Type name ''{0}'' must match pattern ''{1}''."/>-->
<!--</module>-->
<!--<module name="MemberName">-->
<!--<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>-->
<!--<message key="name.invalidPattern"-->
<!--value="Member name ''{0}'' must match pattern ''{1}''."/>-->
<!--</module>-->
<!--<module name="ParameterName">-->
<!--<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>-->
<!--<message key="name.invalidPattern"-->
<!--value="Parameter name ''{0}'' must match pattern ''{1}''."/>-->
<!--</module>-->
<!--<module name="CatchParameterName">-->
<!--<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>-->
<!--<message key="name.invalidPattern"-->
<!--value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>-->
<!--</module>-->
<!--<module name="LocalVariableName">-->
<!--<property name="tokens" value="VARIABLE_DEF"/>-->
<!--<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>-->
<!--<message key="name.invalidPattern"-->
<!--value="Local variable name ''{0}'' must match pattern ''{1}''."/>-->
<!--</module>-->
<!--<module name="ClassTypeParameterName">-->
<!--<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>-->
<!--<message key="name.invalidPattern"-->
<!--value="Class type name ''{0}'' must match pattern ''{1}''."/>-->
<!--</module>-->
<!--<module name="MethodTypeParameterName">-->
<!--<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>-->
<!--<message key="name.invalidPattern"-->
<!--value="Method type name ''{0}'' must match pattern ''{1}''."/>-->
<!--</module>-->
<!--<module name="InterfaceTypeParameterName">-->
<!--<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>-->
<!--<message key="name.invalidPattern"-->
<!--value="Interface type name ''{0}'' must match pattern ''{1}''."/>-->
<!--</module>-->
<module name="NoFinalizer"/>
<module name="GenericWhitespace">
<message key="ws.followed"
Expand All @@ -172,12 +172,12 @@
<property name="lineWrappingIndentation" value="4"/>
<property name="arrayInitIndent" value="2"/>
</module>
<module name="AbbreviationAsWordInName">
<property name="ignoreFinal" value="false"/>
<property name="allowedAbbreviationLength" value="1"/>
</module>
<!--<module name="AbbreviationAsWordInName">-->
<!--<property name="ignoreFinal" value="false"/>-->
<!--<property name="allowedAbbreviationLength" value="1"/>-->
<!--</module>-->
<module name="OverloadMethodsDeclarationOrder"/>
<module name="VariableDeclarationUsageDistance"/>
<!--<module name="VariableDeclarationUsageDistance"/>-->
<module name="CustomImportOrder">
<property name="sortImportsInGroupAlphabetically" value="true"/>
<property name="separateLineBetweenGroups" value="true"/>
Expand All @@ -203,32 +203,32 @@
<property name="allowSamelineMultipleAnnotations" value="true"/>
</module>
<module name="NonEmptyAtclauseDescription"/>
<module name="JavadocTagContinuationIndentation"/>
<module name="SummaryJavadoc">
<property name="forbiddenSummaryFragments" value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
</module>
<module name="JavadocParagraph"/>
<module name="AtclauseOrder">
<property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
<property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
</module>
<module name="JavadocMethod">
<property name="scope" value="public"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowMissingThrowsTags" value="true"/>
<property name="allowMissingReturnTag" value="true"/>
<property name="minLineCount" value="2"/>
<property name="allowedAnnotations" value="Override, Test"/>
<property name="allowThrowsTagsForSubclasses" value="true"/>
</module>
<module name="MethodName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
<message key="name.invalidPattern"
value="Method name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="SingleLineJavadoc">
<property name="ignoreInlineTags" value="false"/>
</module>
<!--<module name="JavadocTagContinuationIndentation"/>-->
<!--<module name="SummaryJavadoc">-->
<!--<property name="forbiddenSummaryFragments" value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>-->
<!--</module>-->
<!--<module name="JavadocParagraph"/>-->
<!--<module name="AtclauseOrder">-->
<!--<property name="tagOrder" value="@param, @return, @throws, @deprecated"/>-->
<!--<property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>-->
<!--</module>-->
<!--<module name="JavadocMethod">-->
<!--<property name="scope" value="public"/>-->
<!--<property name="allowMissingParamTags" value="true"/>-->
<!--<property name="allowMissingThrowsTags" value="true"/>-->
<!--<property name="allowMissingReturnTag" value="true"/>-->
<!--<property name="minLineCount" value="2"/>-->
<!--<property name="allowedAnnotations" value="Override, Test"/>-->
<!--<property name="allowThrowsTagsForSubclasses" value="true"/>-->
<!--</module>-->
<!--<module name="MethodName">-->
<!--<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>-->
<!--<message key="name.invalidPattern"-->
<!--value="Method name ''{0}'' must match pattern ''{1}''."/>-->
<!--</module>-->
<!--<module name="SingleLineJavadoc">-->
<!--<property name="ignoreInlineTags" value="false"/>-->
<!--</module>-->
<module name="EmptyCatchBlock">
<property name="exceptionVariableName" value="expected"/>
</module>
Expand Down
Binary file added docs/images/architecture_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added prop.properties
Empty file.
10 changes: 10 additions & 0 deletions querySonar.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

PassFlag=`curl -s 'https://sonarcloud.io/api/project_badges/measure?project=java-tron&metric=alert_status'|grep -A4 "quality gate"|grep "pass"|wc -l`
echo "Please visit https://sonarcloud.io/dashboard?id=java-tron for more details"
if [ $PassFlag -eq 0 ]; then
echo "Sonar Check Failed"
exit 1
else
echo "Sonar Check Pass"
exit 0
fi
Loading