Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 3e4842e

Browse files
committed
JERSEY-3240: MBW advised to return -1 from #getSize(...).
Change-Id: I365ae7111275f0fafe03e4e74bdfa85ce8995488
1 parent 1e9b6ce commit 3e4842e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/main/docbook/mbw.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
55
6-
Copyright (c) 2012-2013 Oracle and/or its affiliates. All rights reserved.
6+
Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved.
77
88
The contents of this file are subject to the terms of either the GNU
99
General Public License Version 2 only ("GPL") or the Common Development
@@ -180,7 +180,7 @@ public class MyBeanMessageBodyWriter implements MessageBodyWriter<MyBean> {
180180
public long getSize(MyBean myBean, Class<?> type, Type genericType,
181181
Annotation[] annotations, MediaType mediaType) {
182182
// deprecated by JAX-RS 2.0 and ignored by Jersey runtime
183-
return 0;
183+
return -1;
184184
}
185185
186186
@Override

0 commit comments

Comments
 (0)