Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenquotes.git
M build.gradle
1 1
plugins {
2 2
  id 'application'
3
  id 'com.palantir.git-version' version '0.15.0'
4
  id "me.champeau.jmh" version "0.6.6"
3
  id 'com.palantir.git-version' version '3.0.0'
4
  id "me.champeau.jmh" version "0.7.2"
5 5
}
6 6
...
13 13
dependencies {
14 14
  // Command-line parsing
15
  implementation 'info.picocli:picocli:4.7.4'
15
  implementation 'info.picocli:picocli:4.7.5'
16 16
17
  testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
18
  testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.0'
19
  testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
17
  testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
18
  testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.1'
19
  testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1'
20 20
}
21 21
...
30 30
compileJava {
31 31
  options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
32
  options.compilerArgs.addAll(['--release', '20'])
32
  options.compilerArgs.addAll(['--release', '21'])
33 33
}
34 34
...
76 76
tasks.named('test') {
77 77
  useJUnitPlatform()
78
}
79
80
tasks.withType( JavaCompile ).configureEach {
81
  options.compilerArgs += "--enable-preview"
82
}
83
84
tasks.withType( JavaExec ).configureEach {
85
  jvmArgs += "--enable-preview"
86
}
87
88
tasks.withType( Test ).configureEach {
89
  jvmArgs += "--enable-preview"
78 90
}
79 91
M src/test/java/com/whitemagicsoftware/keenquotes/lex/LexerTest.java
118 118
    final var list = asList( expected );
119 119
120
    testType( actual, ( lexeme, text ) -> lexeme.getType(), filter, list );
120
    testType( actual, ( lexeme, _ ) -> lexeme.getType(), filter, list );
121 121
  }
122 122
123 123
  static void testType( final String actual, final LexemeType... expected ) {
124
    testType( actual, filter -> false, expected );
124
    testType( actual, _ -> false, expected );
125 125
  }
126 126
...
134 134
    final BiFunction<Lexeme, String, A> f,
135 135
    final List<E> elements ) {
136
    testType( text, f, filter -> false, elements );
136
    testType( text, f, _ -> false, elements );
137 137
  }
138 138
M src/test/java/com/whitemagicsoftware/keenquotes/parser/CurlerTest.java
69 69
    final var sb = new StringBuilder( 2 ^ 20 );
70 70
71
    try( final var reader = open( filename + ".html" ) ) {
71
    try( final var reader = open( STR."\{filename}.html" ) ) {
72 72
      String line;
73 73