statistics for selected set of proposals.
Ruslan Shevchenko
rssh at gradsoft.com.ua
Tue Jun 2 01:17:57 PDT 2009
Good day, community.
Number of entries in different lines (if suitable),
and percentage between other simular language constructs (if suitable):
openjdk-jdk:
CollectionGetOrSet (simplicified collection element access): 5438
CollectionLiterals (collection literals can be applied): 35
DiamondInitializers (initializers with allocation and type arguments): 1499
DiamondInitializers_percents (per all variable initializers): 1.071503
Elvis (Elvis and Other Null-Safe Operators): 821
Elvis_percents (per if-s and conditions): 2.330136
MultiCatch (multi catch): 412
MultiCatch_percents (per all catchs): 4.898347
NewIntegerLiterals (New Integer Literals): 7131
NewIntegerLiterals_percents (per all integer literal): 5.848821
StringInSwitch (string in switch): 444
compiere ERP:
CollectionGetOrSet (simplicified collection element access): 732
CollectionLiterals (collection literals can be applied): 5
DiamondInitializers (initializers with allocation and type arguments): 708
DiamondInitializers_percents (per all variable initializers): 2.281884
Elvis (Elvis and Other Null-Safe Operators): 67
Elvis_percents (per if-s and conditions): 1.016229
MultiCatch (multi catch): 7
MultiCatch_percents (per all catchs): 0.310973
NewIntegerLiterals (New Integer Literals): 1424
NewIntegerLiterals_percents (per all integer literal): 6.333956
StringInSwitch (string in switch): 215
jetty:
CollectionGetOrSet (simplicified collection element access): 241
CollectionLiterals (collection literals can be applied): 1
DiamondInitializers (initializers with allocation and type arguments): 0
DiamondInitializers_percents (per all variable initializers): 0
Elvis (Elvis and Other Null-Safe Operators): 68
Elvis_percents (per if-s and conditions): 6.532181
MultiCatch (multi catch): 22
MultiCatch_percents (per all catchs): 7.829181
NewIntegerLiterals (New Integer Literals): 87
NewIntegerLiterals_percents (per all integer literal): 2.996900
StringInSwitch (string in switch): 19
hibernate:
CollectionGetOrSet (simplicified collection element access): 418
CollectionLiterals (collection literals can be applied): 9
DiamondInitializers (initializers with allocation and type arguments): 100
DiamondInitializers_percents (per all variable initializers): 0.973615
Elvis (Elvis and Other Null-Safe Operators): 193
Elvis_percents (per if-s and conditions): 6.027483
MultiCatch (multi catch): 25
MultiCatch_percents (per all catchs): 3.846154
NewIntegerLiterals (New Integer Literals): 13
NewIntegerLiterals_percents (per all integer literal): 0.401235
StringInSwitch (string in switch): 86
gwt-user:
CollectionGetOrSet (simplicified collection element access): 324
CollectionLiterals (collection literals can be applied): 6
DiamondInitializers (initializers with allocation and type arguments): 252
DiamondInitializers_percents (per all variable initializers): 5.988593
Elvis (Elvis and Other Null-Safe Operators): 28
Elvis_percents (per if-s and conditions): 2.969247
MultiCatch (multi catch): 9
MultiCatch_percents (per all catchs): 5.263158
NewIntegerLiterals (New Integer Literals): 26
NewIntegerLiterals_percents (per all integer literal): 1.139351
StringInSwitch (string in switch): 10
If you want run on own set of data or modify checks and calculations, then
get 2.5.0p6 from
http://datacenter.gradsoft.ua/public.repository/ua.gradsoft/javachecker/installations/JavaCheckerSourceInstaller-2.5.0p6.jar
than as described in my first letter.
// NewInteger is sum of bytes + widening (?) + big literals.
// Elvis - sub of elvis and null-safe.
// CollectionLiterals: when we see 2 or bigger put(x,y) where x and y are
constants, or 2 or bigger add(constant) or Arrays.asList(constants...)
Regards !
More information about the coin-dev
mailing list