File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
src/main/kotlin/spp/protocol/instrument Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ data class LiveBreakpoint(
48
48
location = LiveSourceLocation (json.getJsonObject(" location" )),
49
49
condition = json.getString(" condition" ),
50
50
expiresAt = json.getLong(" expiresAt" ),
51
- hitLimit = json.getInteger(" hitLimit" ),
51
+ hitLimit = json.getInteger(" hitLimit" ) ? : 1 ,
52
52
id = json.getString(" id" ),
53
53
applyImmediately = json.getBoolean(" applyImmediately" ) ? : false ,
54
54
applied = json.getBoolean(" applied" ) ? : false ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ data class LiveLog(
50
50
location = LiveSourceLocation (json.getJsonObject(" location" )),
51
51
condition = json.getString(" condition" ),
52
52
expiresAt = json.getLong(" expiresAt" ),
53
- hitLimit = json.getInteger(" hitLimit" ),
53
+ hitLimit = json.getInteger(" hitLimit" ) ? : 1 ,
54
54
id = json.getString(" id" ),
55
55
applyImmediately = json.getBoolean(" applyImmediately" ) ? : false ,
56
56
applied = json.getBoolean(" applied" ) ? : false ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ data class LiveMeter(
54
54
LiveSourceLocation (json.getJsonObject(" location" )),
55
55
json.getString(" condition" ),
56
56
json.getLong(" expiresAt" ),
57
- json.getInteger(" hitLimit" ),
57
+ json.getInteger(" hitLimit" ) ? : - 1 ,
58
58
json.getString(" id" ),
59
59
json.getBoolean(" applyImmediately" ) ? : false ,
60
60
json.getBoolean(" applied" ) ? : false ,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ data class LiveSourceLocation @JvmOverloads constructor(
40
40
41
41
constructor (json: JsonObject ) : this (
42
42
source = json.getString(" source" ),
43
- line = json.getInteger(" line" ),
43
+ line = json.getInteger(" line" ) ? : - 1 ,
44
44
service = json.getString(" service" ),
45
45
serviceInstance = json.getString(" serviceInstance" ),
46
46
commitId = json.getString(" commitId" ),
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ data class LiveSpan(
46
46
location = LiveSourceLocation (json.getJsonObject(" location" )),
47
47
condition = json.getString(" condition" ),
48
48
expiresAt = json.getLong(" expiresAt" ),
49
- hitLimit = json.getInteger(" hitLimit" ),
49
+ hitLimit = json.getInteger(" hitLimit" ) ? : - 1 ,
50
50
id = json.getString(" id" ),
51
51
applyImmediately = json.getBoolean(" applyImmediately" ) ? : false ,
52
52
applied = json.getBoolean(" applied" ) ? : false ,
You can’t perform that action at this time.
0 commit comments