typetools / typetools/checker-framework

Feature request: @Heavyweight (?) annotation to mark methods not safe for UI thread

Open
#3,253 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
1.1k
Forks
440
Avg merge
1d 12h
Merged PRs (30d)
134

Description

By default, methods from java.net and java.sql could be annotated.

A method can't be @UIEffect and @Heavyweight at the same time (as this implies doing heavy lifting on the UI thread, which is almost always a bad decision).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the existing effect annotations and how library methods from java.net and java.sql are modeled. Done means defining the proposed @Heavyweight behavior, handling its incompatibility with @UIEffect, and covering the default annotations.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.