File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
webclient/api/src/main/java/io/helidon/webclient/api Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ public R request() {
262
262
}
263
263
264
264
@ Override
265
- public final R submit (Object entity ) {
265
+ public R submit (Object entity ) {
266
266
if (!(entity instanceof byte [] bytes && bytes .length == 0 )) {
267
267
rejectHeadWithEntity ();
268
268
}
@@ -271,7 +271,7 @@ public final R submit(Object entity) {
271
271
}
272
272
273
273
@ Override
274
- public final R outputStream (OutputStreamHandler outputStreamConsumer ) {
274
+ public R outputStream (OutputStreamHandler outputStreamConsumer ) {
275
275
rejectHeadWithEntity ();
276
276
additionalHeaders ();
277
277
return doOutputStream (outputStreamConsumer );
@@ -481,7 +481,7 @@ private String resolvePathParams(String path) {
481
481
}
482
482
483
483
private void rejectHeadWithEntity () {
484
- if (this . method .equals (Method . HEAD )) {
484
+ if (Method . HEAD .equals (this . method )) {
485
485
throw new IllegalArgumentException ("Payload in method '" + Method .HEAD + "' has no defined semantics" );
486
486
}
487
487
}
You can’t perform that action at this time.
0 commit comments