You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new GsonBuilder().registerTypeAdapter(LocalDateTime.class, new JsonSerializer<LocalDateTime>() {
@@ -112,7 +112,7 @@ public JsonElement serialize(LocalDateTime object, Type type, JsonSerializationC
112
112
import com.google.gson.JsonPrimitive;
113
113
import com.google.gson.JsonSerializer;
114
114
import java.time.LocalDateTime;
115
-
115
+
116
116
class Test {
117
117
void test() {
118
118
new GsonBuilder().registerTypeAdapter(LocalDateTime.class, (JsonSerializer<LocalDateTime>) (object, type, context) -> new JsonPrimitive(object.format(null)));
@@ -163,14 +163,14 @@ public void run() {
163
163
Test.this.execute();
164
164
}
165
165
};
166
-
166
+
167
167
void execute() {}
168
168
}
169
169
""",
170
170
"""
171
171
class Test {
172
172
Runnable r = Test.this::execute;
173
-
173
+
174
174
void execute() {}
175
175
}
176
176
"""
@@ -239,7 +239,7 @@ void emptyLambda() {
239
239
java(
240
240
"""
241
241
import java.util.function.Consumer;
242
-
242
+
243
243
class Test {
244
244
void foo() {
245
245
Consumer<Integer> s;
@@ -253,7 +253,7 @@ public void accept(Integer i) {
0 commit comments