[ANNOUNCEMENT] CSS4J, CSS4J-AGENT and CSS4J-AWT 4.0

10 views
Skip to first unread message

admin

unread,
Mar 30, 2023, 2:27:27 PM3/30/23
to css4j
I simultaneously released versions 4.0 of CSS4J, CSS4J-AGENT and CSS4J-AWT.

CSS4J 4.0 is not 100% backwards-compatible with 3.x, mainly because of the removal of an interface, but I don't think that many users will notice (in any case the interface was long deprecated for removal).

I haven't released any css4j-dom4j 4.0, but latest versions work just fine with css4j 4.0 (I performed a full compatibility test of css4j-dom4j 3.9.1 with about 200 popular web pages, no issues).

For more information:

Statistics

A few statistics about the CSS4J ecosystem at version 4.0:
  • 4,966 unit tests in the core module.
  • 84.5% unit test coverage in the core module.
  • 211,758 lines of code (sum of css4j, css4j-dom4j, xml-dtd, etc. but not counting the website).
  • Excluding the unit and integration tests, the main core css4j module is 75,769 lines of code (what you get compiled in the jar file).
  • Tests are 58% of the core css4j module code (unit tests are 57%, integration the other 1%).
Here are the detailed code statistics, reported by Tokei. Contributed code was excluded (e.g. popular style sheets used in tests).

All the ecosystem, excluding website:
===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 Batch                   8          736          568            0          168
 CSS                    22        17122        16604          388          130
 Groovy                 12          620          355          197           68
 Java                  774       246651       191647        33389        21615
 JSON                    1          247          245            0            2
 Shell                  18         2202         1001         1001          200
 Plain Text             19         1694            0         1434          260
 XML                     3          569          541           23            5
-------------------------------------------------------------------------------
 HTML                   14          859          797           10           52
 |- CSS                 11          576          576            0            0
 |- JavaScript           7          311          297           14            0
 (Total)                           1746         1670           24           52
-------------------------------------------------------------------------------
 Markdown               21         1717            0         1155          562
 |- Groovy               4           62           62            0            0
 |- Shell                8           73           73            0            0
 |- XML                  2           18           17            1            0
 (Total)                           1870          152         1156          562
===============================================================================
 Total                 892       272417       211758        37597        23062
===============================================================================

Only css4j main module + css4j CI:
===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 Batch                   1           92           71            0           21
 CSS                    20         1282          830          374           78
 Groovy                  2          124           71           41           12
 Java                  671       227846       178378        29828        19640
 Shell                   2          262          115          122           25
 Plain Text              7          964            0          814          150
 XML                     2          393          389            4            0
-------------------------------------------------------------------------------
 HTML                   13          768          706           10           52
 |- CSS                 11          576          576            0            0
 |- JavaScript           7          311          297           14            0
 (Total)                           1655         1579           24           52
-------------------------------------------------------------------------------
 Markdown                5          660            0          462          198
 |- Groovy               1           15           15            0            0
 |- Shell                2           21           21            0            0
 |- XML                  1           13           12            1            0
 (Total)                            709           48          463          198
===============================================================================
 Total                 723       232391       180560        31655        20176
===============================================================================

Only css4j main sources (no tests):
===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 CSS                     2          806          428          355           23
 HTML                    1           33           33            0            0
 Java                  479       109496        75308        23021        11167
===============================================================================
 Total                 482       110335        75769        23376        11190
===============================================================================

Reply all
Reply to author
Forward
0 new messages