Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"enabledPlugins": {
"rust-analyzer-lsp@claude-plugins-official": true
}
"permissions": {
"allow": [
"WebFetch(domain:checkerframework.org)",
"Bash(mkdir:*)",
"Bash(./gradlew:*)",
"Bash(git -C /home/mernst/research/types/checker-framework-fork-mernst-branch-override-order diff master..override-order --stat)"
"Bash(git -C /home/mernst/research/types/checker-framework-fork-mernst-branch-override-order log master..override-order --oneline)",
"Bash(java:*)",
"Bash(javac:*)",
"Bash(ls)",
"Bash(timeout 300 ./gradlew:*)",
"Bash(./x.py check:*)",
"Read(//scratch/mernst/**)"
],
"deny": [],
"ask": []
}
}
46 changes: 46 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

language: "en-US"

reviews:
profile: "assertive"
high_level_summary: false
review_status: false
collapse_walkthrough: true
changed_files_summary: false
sequence_diagrams: false
estimate_code_review_effort: false
in_progress_fortune: false
poem: false
path_filters:
- "!**/build/**"
- "!**/out/**"
- "!**/.gradle/**"
- "!**/.idea/**"
- "!**/node_modules/**"
auto_review:
auto_pause_after_reviewed_commits: 0
ignore_title_keywords:
- "wip"
- "draft"
ignore_usernames:
- "dependabot"
- "dependabot[bot]"
- "mend"
- "renovate"
- "renovate[bot]"
pre_merge_checks:
title:
mode: "off"
description:
mode: "off"

chat:
art: false

knowledge_base:
code_guidelines:
enabled: true
filePatterns:
- "**/.cursorrules"
- "**/CODING_STANDARDS.md"
5 changes: 3 additions & 2 deletions src/java.base/share/classes/java/lang/System.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.checkerframework.checker.mustcall.qual.MustCall;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.checker.nullness.qual.PolyNull;
import org.checkerframework.checker.regex.qual.Regex;
import org.checkerframework.checker.signedness.qual.PolySigned;
import org.checkerframework.dataflow.qual.Pure;
import org.checkerframework.dataflow.qual.SideEffectFree;
Expand Down Expand Up @@ -122,7 +123,7 @@
*
* @since 1.0
*/
@AnnotatedFor({"index", "interning", "lock", "mustcall", "nullness", "signedness"})
@AnnotatedFor({"index", "interning", "lock", "mustcall", "nullness", "regex", "signedness"})
public final @UsesObjectEquals class System {
/* Register the natives via the static initializer.
*
Expand Down Expand Up @@ -905,7 +906,7 @@ public static Properties getProperties() {
* @since 1.7
*/
@Pure
public static String lineSeparator() {
public static @Regex String lineSeparator() {
return lineSeparator;
}

Expand Down
3 changes: 2 additions & 1 deletion src/java.base/share/classes/java/lang/ThreadGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,8 @@ public int activeGroupCount() {
* the current thread cannot access this thread group
*/
public @NonNegative int enumerate(ThreadGroup[] list, boolean recurse) {
Objects.requireNonNull(list); checkAccess();
Objects.requireNonNull(list);
checkAccess();
return enumerate(list, 0, recurse);
}

Expand Down
5 changes: 5 additions & 0 deletions src/java.base/share/classes/java/net/HttpURLConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

package java.net;

import org.checkerframework.checker.mustcall.qual.InheritableMustCall;
import org.checkerframework.framework.qual.AnnotatedFor;

import java.io.InputStream;
import java.io.IOException;
import java.security.Permission;
Expand Down Expand Up @@ -66,6 +69,8 @@
* @see java.net.HttpURLConnection#disconnect()
* @since 1.1
*/
@AnnotatedFor("mustcall")
@InheritableMustCall("disconnect")
public abstract class HttpURLConnection extends URLConnection {
/* instance variables */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

package sun.net.www.protocol.http;

import org.checkerframework.checker.mustcall.qual.InheritableMustCall;
import org.checkerframework.framework.qual.AnnotatedFor;

import java.security.PrivilegedAction;
import java.util.Arrays;
import java.net.URL;
Expand Down Expand Up @@ -98,6 +101,8 @@
*/


@AnnotatedFor("mustcall")
@InheritableMustCall("disconnect")
public class HttpURLConnection extends java.net.HttpURLConnection {

static final String HTTP_CONNECT = "CONNECT";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ public FileObject getFileForOutputForOriginatingFiles(Location location, String
}
}

@Override @DefinedBy(Api.COMPILER) public boolean contains(Location location, FileObject file) throws IOException {
@Override @DefinedBy(Api.COMPILER)
public boolean contains(Location location, FileObject file) throws IOException {
try {
return clientJavaFileManager.contains(location, unwrap(file));
} catch (ClientCodeException e) {
Expand Down
Loading