Skip to content

Commit c402e9f

Browse files
committed
Use 4.0.1 version of the swim backend
1 parent 23f81f2 commit c402e9f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
swim.version=3.11.0
1+
swim.version=4.0.1

http_lanes/src/main/java/swim/basic/UnitAgent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ public class UnitAgent extends AbstractAgent {
2525
HttpLane<Value> http = this.<Value>httpLane()
2626
.doRespond(request -> {
2727
if (HttpMethod.POST.equals(request.method())) {
28-
this.state.set(request.entity().get());
28+
this.state.set(request.payload().get());
2929
}
30-
return HttpResponse.from(HttpStatus.OK)
30+
return HttpResponse.create(HttpStatus.OK)
3131
.body(Recon.toString(this.state.get()), MediaType.applicationXRecon());
3232
});
3333

3434
@SwimLane("httpJson")
3535
HttpLane<Value> httpJson = this.<Value>httpLane()
3636
.doRespond(request ->
37-
HttpResponse.from(HttpStatus.OK)
37+
HttpResponse.create(HttpStatus.OK)
3838
.body(Json.toString(this.state.get()), MediaType.applicationJson()));
3939

4040
@Override

project.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ afterEvaluate {
4848
'--patch-module', "$moduleName=" + files(sourceSets.main.resources.srcDirs).asPath]
4949
options.encoding = 'UTF-8'
5050
source = sourceSets.main.allJava
51-
sourceCompatibility = JavaVersion.VERSION_1_9
52-
targetCompatibility = JavaVersion.VERSION_1_9
51+
sourceCompatibility = JavaVersion.VERSION_11
52+
targetCompatibility = JavaVersion.VERSION_11
5353
}
5454
}

0 commit comments

Comments
 (0)