typetools / typetools/checker-framework

CollectionToArrayHeuristics should handle Vector.copyInto

Open
#104 0 comments 0 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

The semantics of Vector.copyInto are essentially the same as those of 
Collection.toArray.  Therefore, class CollectionToArrayHeuristics should 
special-case Vector.copyInto just as it currently does for Collection.toArray.

Original issue reported on code.google.com by michael.ernst@gmail.com on 13 Aug 2011 at 9:54

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

Start in CollectionToArrayHeuristics and compare the existing special handling for Collection.toArray with Vector.copyInto. Confirm that Vector.copyInto receives equivalent treatment, and consider the issue complete when the heuristic recognizes both operations consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.