代码拉取完成,页面将自动刷新
mvn clean install
can be compiled and tested successfully.sharding-sphere/src/resources/sharding_checks.xml
, please use checkstyle 8.8
to run the rules.result
; Variables in the loop structure are named with each
; Replace each
with entry
in map.ex
; Exceptions when catch but do nothing are named with ignored
.=
and equals
conditional expressions; Have variable on the left and constants on the right in greater than
and less than
conditional expressions.LinkedList
in priority. Use ArrayList
for use index to get element only.Collection
such as ArrayList
, HashMap
must indicate initial capacity to avoid recalculate capacity.final
class expect abstract class for extend.null
parameters or return values.public
classes and methods need javadoc, other methods, classes and override methods do not need javadoc.Assert
, hamcrest CoreMatchers
and Mockito
can use static import.assertTrue
, assertFalse
, assertNull
and assertNotNull
should be used.assertThat
should be used.not
, containsString
to make assertions.actualXXX
, expected values expectedXXX
.@Test
annotation do not need javadoc.你可以在登录后,发表评论
评论 ( 0 )