Skip to content

Reduce the amount of code a little #2 - #173

Merged
zhaohong merged 4 commits into
tronprotocol:developfrom
AhnSinYong:master2
Mar 6, 2018
Merged

zhaohong merged 4 commits into
tronprotocol:developfrom
AhnSinYong:master2

Conversation

@AhnSinYong

Copy link
Copy Markdown
Contributor

What does this PR do?
ByteArrayTest.java

  • Reformat some code
  • Add 2 test methods about int

ByteArray.java

  • Reformat some code
  • Replace Try-Catch-Finally with Try-with-resources
  • Replace if statement with conditional ternary operator
  • Replace if condition with third party libraries utilities

ActuatorFactory.java

  • Remove duplicate calling same method
  • Replace return null of createActuator method with return actuatorList
    Because return null does not seem appropriate

Manager.java

  • Reformat some code

Why are these changes required?
Reduce the amount of code a little #2

This PR has been tested by:

  • Unit Tests (partly)

- Replace return null of createActuator method with return actuatorList. Because return null does not seem appropriate.
- Replace Try-Catch-Finally with Try-with-resources
- Replace if statement with conditional ternary operator
- Replace if condition with third party libraries utilities
- Add 2 test methods about int
@zhaohong
zhaohong merged commit 095a0fc into tronprotocol:develop Mar 6, 2018
@zhaohong

zhaohong commented Mar 6, 2018

Copy link
Copy Markdown
Contributor

thanks!

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