geoliveira / lotus-tool

LoTuS is a tool for graphic behaviour modelling of software using LTS
0 stars 0 forks source link

Refactoring bad smells #5

Open geoliveira opened 3 years ago

ubiratann commented 3 years ago

On file lotus-compiler/src/main/java/br/uece/lotus/compiler/CompilerWindow.java, correct "|" to "||" on code

if(total ==100 | total == 0 )

ubiratann commented 3 years ago

On file lotus-compiler/src/main/java/br/uece/lotus/compiler/CompilerWindow.java, correct "&" to "&&" on code if(total >=99.99 && total < 100 )

ubiratann commented 3 years ago

Use isEmpty to check wether the collection is empty on file lotus-api/src/main/java/br/uece/lotus/Component.java at code if (state.isInitial()) { if (mStates.size() > 0) { setInitialState(mStates.get(0)); } }

ubiratann commented 3 years ago

Remove unused import Region lotus-api/src/main/java/br/uece/lotus/viewer/ComponentView.java