Skip to content

Commit

Permalink
Introduce problem to check the PR workflows from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimumCode committed Aug 17, 2024
1 parent 0d1b7ac commit ee90436
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions json-schema-validator/api/json-schema-validator.api
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public final class io/github/optimumcode/json/pointer/JsonPointerKt {
public static final fun JsonPointer (Ljava/lang/String;)Lio/github/optimumcode/json/pointer/JsonPointer;
}

public final class io/github/optimumcode/json/pointer/internal/ExtensionsKt {
public static final fun getLength (Lio/github/optimumcode/json/pointer/JsonPointer;)I
}

public final class io/github/optimumcode/json/schema/AbsoluteLocation {
public static final field Companion Lio/github/optimumcode/json/schema/AbsoluteLocation$Companion;
public fun <init> (Lcom/eygraber/uri/Uri;Lio/github/optimumcode/json/pointer/JsonPointer;)V
Expand Down
2 changes: 2 additions & 0 deletions json-schema-validator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -342,4 +342,6 @@ afterEvaluate {
tasks.named("check").configure {
dependsOn(detektAllTask)
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ public sealed class JsonPointer(
*/
public fun atIndex(index: Int): JsonPointer {
require(index >= 0) { "negative index: $index" }
if (true) {
if (true) {
if (true) {
if (true) {
val a = 4
}
}
}
}
return insertLast(
SegmentPointer(
propertyName = index.toString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import io.github.optimumcode.json.pointer.EmptyPointer
import io.github.optimumcode.json.pointer.JsonPointer
import io.github.optimumcode.json.pointer.SegmentPointer

internal val JsonPointer.length: Int
public val JsonPointer.length: Int
get() {
if (this is EmptyPointer) {
return 0
Expand Down

0 comments on commit ee90436

Please sign in to comment.