| // JavaFX | ||
| - implementation 'org.controlsfx:controlsfx:11.2.0' | ||
| + implementation 'org.controlsfx:controlsfx:11.2.1' | ||
| implementation 'org.fxmisc.richtext:richtextfx:0.11.2' | ||
| implementation 'org.fxmisc.flowless:flowless:0.7.2' | ||
| // R | ||
| implementation 'org.apache.commons:commons-compress:1.26.1' | ||
| - implementation 'org.codehaus.plexus:plexus-utils:4.0.0' | ||
| + implementation 'org.codehaus.plexus:plexus-utils:4.0.1' | ||
| implementation 'org.renjin:renjin-script-engine:3.5-beta76' | ||
| implementation 'org.renjin.cran:rjson:0.2.15-renjin-21' | ||
| import org.junit.jupiter.api.Test; | ||
| +import java.nio.charset.Charset; | ||
| import java.nio.charset.StandardCharsets; | ||
| +import static java.nio.charset.StandardCharsets.*; | ||
| import static org.junit.jupiter.api.Assertions.assertEquals; | ||
| public class EncodingTest { | ||
| @Test | ||
| + @SuppressWarnings( "UnnecessaryLocalVariable" ) | ||
| public void test_Encoding_UTF8_UTF8() { | ||
| final var bytes = testBytes(); | ||
| final var detector = new EncodingDetector(); | ||
| - final var expectedCharset = StandardCharsets.UTF_8; | ||
| + final var expectedCharset = UTF_8; | ||
| final var actualCharset = detector.detect( bytes ); | ||
| more relaxing. | ||
| """ | ||
| - .getBytes(); | ||
| + .getBytes( UTF_8 ); | ||
| } | ||
| } | ||
| Author | DaveJarvis <email> |
|---|---|
| Date | 2024-04-30 17:28:50 GMT-0700 |
| Commit | 589a95d39d5e37df92a8aafb28d0905f934cda6b |
| Parent | 079dd2a |
| Delta | 7 lines added, 4 lines removed, 3-line increase |