Skip to content

Commit a640a45

Browse files
committed
[Java] Warnings cleanup.
1 parent 84bbf2e commit a640a45

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ allprojects {
138138
mavenCentral()
139139
}
140140

141-
configurations.all {
141+
configurations.configureEach {
142142
resolutionStrategy {
143143
failOnVersionConflict()
144144
}
@@ -166,18 +166,18 @@ subprojects {
166166

167167
checkstyle.toolVersion = "${checkstyleVersion}"
168168

169-
tasks.withType(Sign) {
169+
tasks.withType(Sign).configureEach {
170170
onlyIf {
171171
isReleaseVersion && gradle.taskGraph.hasTask(tasks.publish)
172172
}
173173
}
174174

175-
tasks.withType(Jar) {
175+
tasks.withType(Jar).configureEach {
176176
enabled = true
177177
includeEmptyDirs = false
178178
}
179179

180-
tasks.withType(JavaCompile) {
180+
tasks.withType(JavaCompile).configureEach {
181181
options.encoding = 'UTF-8'
182182
options.deprecation = true
183183
options.compilerArgs.addAll(['-Xlint:all', '-Werror']) // Enable all warnings and treat them as errors

sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/GenerationUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ public static int findEndSignal(
133133
}
134134

135135
/**
136-
* Find a list of sub-group names.
136+
* Find a list of subgroup names.
137137
*
138138
* @param tokens to search.
139-
* @return list of names for the sub-groups.
139+
* @return list of names for the subgroups.
140140
*/
141141
public static List<String> findSubGroupNames(final List<Token> tokens)
142142
{

sbe-tool/src/test/java/uk/co/real_logic/sbe/xml/ErrorHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void shouldExitAfterTypesWhenCompositeOffsetsIncorrect() throws Exception
198198
@Test
199199
void shouldExitAfterTypesWhenCompositeHasInvalidTypes() throws Exception
200200
{
201-
try (InputStream in = Tests.getLocalResource("error-handler-invalid-composite.xml");)
201+
try (InputStream in = Tests.getLocalResource("error-handler-invalid-composite.xml"))
202202
{
203203
final ParserOptions options = ParserOptions.builder().suppressOutput(true).warningsFatal(true).build();
204204
parse(in, options);

0 commit comments

Comments
 (0)