Skip to content

Commit

Permalink
[java] moved the method to the correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 committed Nov 8, 2023
1 parent a5591ef commit eb82278
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 0 additions & 10 deletions java/src/org/openqa/selenium/bidi/ConverterFunctions.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,4 @@ public static <X> Function<JsonInput, X> map(final String keyName, Type typeOfX)
return value;
};
}

public static Function<JsonInput, Void> empty() {
return input -> {
// expects an empty object
input.beginObject();
input.endObject();

return null;
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public BodyDeclaration<?> toMethodDeclaration() {
.get()
.addStatement(
String.format(
"return new Event<>(\"%s.%s\", input -> ConverterFunctions.empty());",
"return new Event<>(\"%s.%s\", ConverterFunctions.empty());",
domain.name, name));
} else if (type instanceof ObjectType || type instanceof ArrayType) {
methodDecl
Expand Down
10 changes: 10 additions & 0 deletions java/src/org/openqa/selenium/devtools/ConverterFunctions.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,14 @@ public static <X> Function<JsonInput, X> map(final String keyName, Type typeOfX)
return value;
};
}

public static Function<JsonInput, Void> empty() {
return input -> {
// expects an empty object
input.beginObject();
input.endObject();

return null;
};
}
}

0 comments on commit eb82278

Please sign in to comment.