Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git
build.gradle
content {
includeGroup 'com.github.css4j'
+ includeGroup 'io.sf.graphics'
includeGroup 'io.sf.carte'
includeGroup 'io.sf.jclf'
java {
- sourceCompatibility = 21
- targetCompatibility = 21
+ sourceCompatibility = 22
+ targetCompatibility = 22
}
def v_flexmark = '0.64.8'
def v_jackson = '2.17.2'
- def v_echosvg = '1.0.1'
+ def v_echosvg = '1.2'
def v_picocli = '4.7.6'
src/main/java/com/keenwrite/editors/definition/yaml/YamlTreeTransformer.java
/**
- * Transforms a JsonNode hierarchy into a tree that can be displayed in a user
- * interface and vice-versa.
+ * Transforms a {@link JsonNode} hierarchy into a tree that can be displayed
+ * in a user interface and vice-versa.
*/
public final class YamlTreeTransformer implements TreeTransformer {
// If the current item has more than one non-leaf child, it's an
// object node and must become a new nested object.
- if( !(children.size() == 1 && children.get( 0 ).isLeaf()) ) {
+ if( !(children.size() == 1 && children.getFirst().isLeaf()) ) {
node = node.putObject( item.getValue() );
}
src/main/java/com/keenwrite/processors/r/Engine.java
*/
public static String eval( final String r ) {
- return sCache.computeIfAbsent( r, __ -> evaluate( r ) );
+ return sCache.computeIfAbsent( r, _ -> evaluate( r ) );
}
src/main/java/com/keenwrite/ui/tree/AltTreeView.java
setEditable( true );
- setCellFactory( treeView -> new AltTreeCell<>( converter ) );
+ setCellFactory( _ -> new AltTreeCell<>( converter ) );
setShowRoot( false );
// When focus is lost while not editing, deselect all items.
- focusedProperty().addListener( ( c, o, n ) -> {
+ focusedProperty().addListener( ( _, o, _ ) -> {
if( o && getEditingItem() == null ) {
getSelectionModel().clearSelection();
src/main/java/com/keenwrite/ui/tree/TreeItemConverter.java
import javafx.util.StringConverter;
+import static com.keenwrite.util.Strings.sanitize;
+
/**
* Responsible for converting objects to and from string instances. The
public String fromString( final String string ) {
return sanitize( string );
- }
-
- private String sanitize( final String string ) {
- return string == null ? "" : string;
}
}

Upgrade Java, gradle, echosvg

Author DaveJarvis <email>
Date 2024-08-05 21:12:09 GMT-0700
Commit e94f02ddf7a7cd5e299c87c54739453b4a7c7b34
Parent 3c029dd
Delta 12 lines added, 13 lines removed, 1-line decrease