Skip to content

Commit 173c4b7

Browse files
committed
More Play stubs improvements
1 parent 4384f78 commit 173c4b7

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

java/ql/test/stubs/playframework-2.6.x/play/i18n/Lang.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
import java.util.*;
88

9-
public class Lang /* extends play.api.i18n.Lang */ {}
9+
public class Lang {}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package play.i18n;
22

3-
/** A Lang supported by the application. */
43
public class Langs {}

java/ql/test/stubs/playframework-2.6.x/play/mvc/Http.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ public Context withRequest(Request request) {
155155

156156
public static class Headers {
157157

158-
private final Map<String, List<String>> headers;
159-
160158
public Headers(Map<String, List<String>> headers) {}
161159

162160
public Map<String, List<String>> toMap() {
@@ -756,7 +754,9 @@ public Cookie(
756754
boolean secure,
757755
boolean httpOnly) {}
758756

759-
public static CookieBuilder builder(String name, String value) {}
757+
public static CookieBuilder builder(String name, String value) {
758+
return null;
759+
}
760760

761761
public String name() {
762762
return "";
@@ -786,15 +786,15 @@ public boolean httpOnly() {
786786
return true;
787787
}
788788

789-
public Optional<SameSite> sameSite() {}
789+
public Optional<SameSite> sameSite() {
790+
return null;
791+
}
790792

791793
public enum SameSite {
792794
STRICT("Strict"),
793795
LAX("Lax"),
794796
NONE("None");
795797

796-
private final String value;
797-
798798
SameSite(String value) {}
799799

800800
public String value() {
@@ -820,7 +820,9 @@ public CookieBuilder withValue(String value) {
820820
}
821821

822822
@Deprecated
823-
public CookieBuilder withMaxAge(Integer maxAge) {}
823+
public CookieBuilder withMaxAge(Integer maxAge) {
824+
return null;
825+
}
824826

825827
public CookieBuilder withMaxAge(Duration maxAge) {
826828
return null;

0 commit comments

Comments
 (0)