Skip to content

Commit eb82278

Browse files
committed
[java] moved the method to the correct place
1 parent a5591ef commit eb82278

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

java/src/org/openqa/selenium/bidi/ConverterFunctions.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,4 @@ public static <X> Function<JsonInput, X> map(final String keyName, Type typeOfX)
4949
return value;
5050
};
5151
}
52-
53-
public static Function<JsonInput, Void> empty() {
54-
return input -> {
55-
// expects an empty object
56-
input.beginObject();
57-
input.endObject();
58-
59-
return null;
60-
};
61-
}
6252
}

java/src/org/openqa/selenium/devtools/CdpClientGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public BodyDeclaration<?> toMethodDeclaration() {
437437
.get()
438438
.addStatement(
439439
String.format(
440-
"return new Event<>(\"%s.%s\", input -> ConverterFunctions.empty());",
440+
"return new Event<>(\"%s.%s\", ConverterFunctions.empty());",
441441
domain.name, name));
442442
} else if (type instanceof ObjectType || type instanceof ArrayType) {
443443
methodDecl

java/src/org/openqa/selenium/devtools/ConverterFunctions.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,14 @@ public static <X> Function<JsonInput, X> map(final String keyName, Type typeOfX)
4545
return value;
4646
};
4747
}
48+
49+
public static Function<JsonInput, Void> empty() {
50+
return input -> {
51+
// expects an empty object
52+
input.beginObject();
53+
input.endObject();
54+
55+
return null;
56+
};
57+
}
4858
}

0 commit comments

Comments
 (0)