Skip to content

Modify the code slightly #2 - #178

Merged
zhaohong merged 3 commits into
tronprotocol:developfrom
AhnSinYong:master
Mar 6, 2018
Merged

zhaohong merged 3 commits into
tronprotocol:developfrom
AhnSinYong:master

Conversation

@AhnSinYong

Copy link
Copy Markdown
Contributor

What does this PR do?
AccountStore.java

  • Replace if statement with ternary operator
  • Replace if condition with third-party utilities
  • Replace create empty list and add element with stream collect

BlockFilledSlots.java

  • Replace for-loop statement with jdk utilities
  • Replace calculate the index with modulus operator

BlockFilledSlotsTest.java

  • Add 3 test methods

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

- Replace if condition with third-party utilities
- Replace create empty list and add element with stream collect
- Replace calculate the index with modulus operator
@zhaohong

zhaohong commented Mar 6, 2018

Copy link
Copy Markdown
Contributor

thanks!

@zhaohong
zhaohong merged commit ee90b49 into tronprotocol:develop Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants