Skip to content

Commit a93aaba

Browse files
committed
Add the toString() method
1 parent 919c6b4 commit a93aaba

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

java/ql/test/stubs/jsr311-api-1.1.1/javax/ws/rs/core/NewCookie.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,4 +320,15 @@ public boolean isHttpOnly() {
320320
public Cookie toCookie() {
321321
return null;
322322
}
323+
324+
/**
325+
* Convert the cookie to a string suitable for use as the value of the
326+
* corresponding HTTP header.
327+
*
328+
* @return a stringified cookie.
329+
*/
330+
@Override
331+
public String toString() {
332+
return null;
333+
}
323334
}

java/ql/test/stubs/servlet-api-2.4/javax/servlet/http/Cookie.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,15 @@ public void setHttpOnly(boolean isHttpOnly) {
114114
public boolean isHttpOnly() {
115115
return isHttpOnly;
116116
}
117+
118+
/**
119+
* Convert the cookie to a string suitable for use as the value of the
120+
* corresponding HTTP header.
121+
*
122+
* @return a stringified cookie.
123+
*/
124+
@Override
125+
public String toString() {
126+
return null;
127+
}
117128
}

0 commit comments

Comments
 (0)