File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
http_lanes/src/main/java/swim/basic Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- swim.version =3.11.0
1+ swim.version =4.0.1
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments