Skip to content

Commit 6a0478d

Browse files
authored
Merge branch 'master' into renovate/org.codehaus.groovy-groovy-all-3.x
2 parents c86c45b + a86653c commit 6a0478d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

graphql-java-servlet/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ dependencies {
1616
api(project(':graphql-java-kickstart'))
1717

1818
// Servlet
19-
api 'javax.servlet:javax.servlet-api:3.1.0'
19+
api 'javax.servlet:javax.servlet-api:4.0.1'
2020
api 'javax.websocket:javax.websocket-api:1.1'
2121
implementation "org.slf4j:slf4j-api:$LIB_SLF4J_VER"
2222

2323
// OSGi
2424
compileOnly 'org.osgi:org.osgi.core:6.0.0'
2525
compileOnly 'org.osgi:org.osgi.service.cm:1.6.0'
26-
compileOnly 'org.osgi:org.osgi.service.component:1.3.0'
27-
compileOnly 'org.osgi:org.osgi.service.component.annotations:1.3.0'
26+
compileOnly 'org.osgi:org.osgi.service.component:1.4.0'
27+
compileOnly 'org.osgi:org.osgi.service.component.annotations:1.4.0'
2828
compileOnly 'org.osgi:org.osgi.service.metatype.annotations:1.4.0'
2929
compileOnly 'org.osgi:org.osgi.annotation:6.0.0'
3030

@@ -33,7 +33,7 @@ dependencies {
3333
// Unit testing
3434
testImplementation "org.codehaus.groovy:groovy-all:3.0.8"
3535
testImplementation "org.spockframework:spock-core:2.0-M5-groovy-3.0"
36-
testRuntimeOnly "cglib:cglib-nodep:3.2.4"
36+
testRuntimeOnly "cglib:cglib-nodep:3.3.0"
3737
testRuntimeOnly "org.objenesis:objenesis:3.2"
3838
testImplementation "org.slf4j:slf4j-simple:$LIB_SLF4J_VER"
3939
testImplementation 'org.springframework:spring-test:5.3.6'

graphql-java-servlet/src/main/java/graphql/kickstart/servlet/BatchedQueryResponseWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void write(HttpServletRequest request, HttpServletResponse response) thro
2727
// GiB of memory allocation during large response processing.
2828
List<byte[]> serializedResults = new ArrayList<>(2 * results.size() + 1);
2929

30-
if (results.size() > 0) {
30+
if (!results.isEmpty()) {
3131
serializedResults.add("[".getBytes(StandardCharsets.UTF_8));
3232
} else {
3333
serializedResults.add("[]".getBytes(StandardCharsets.UTF_8));

0 commit comments

Comments
 (0)