Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport "Implement -Xlint:private-shadow, type-parameter-shadow" to LTS #20685

Merged
merged 11 commits into from
Jun 20, 2024

Commits on Jun 20, 2024

  1. Implement -Xlint:private-shadow, type-parameter-shadow

    Respectively warn about :
    - a private field or a class parameter that shadows a superclass field
    - a local type parameter that shadows a type already in the scope
    
    Fixes : #17612 and #17613
    
    [Cherry-picked e5fd477]
    schuetzcarl authored and WojciechMazur committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    057d8f3 View commit details
    Browse the repository at this point in the history
  2. Move out miniphase

    [Cherry-picked 1f15b29]
    schuetzcarl authored and WojciechMazur committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    f782a66 View commit details
    Browse the repository at this point in the history
  3. Fix Exception in CheckUnused isOverriden() helper

    [Cherry-picked 175d4f3][modified]
    WojciechMazur committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    76b797f View commit details
    Browse the repository at this point in the history
  4. Warn instead of fail for invalid -Xlint args

    [Cherry-picked 07f6581]
    schuetzcarl authored and WojciechMazur committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    d09614a View commit details
    Browse the repository at this point in the history
  5. Lint MegaPhase after ExtractSemanticDB

    [Cherry-picked 297183c]
    schuetzcarl authored and WojciechMazur committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    ce9003d View commit details
    Browse the repository at this point in the history
  6. Adjust export and synth. case class constructor false-positive cases …

    …& Add Tests
    
    [Cherry-picked 46f2db6]
    schuetzcarl authored and WojciechMazur committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    a6e3d7e View commit details
    Browse the repository at this point in the history
  7. Move tests from neg-custom-args/fatal-warnings to neg

    [Cherry-picked fb8426a]
    schuetzcarl authored and WojciechMazur committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    c431d61 View commit details
    Browse the repository at this point in the history
  8. Delete tests in old folder

    [Cherry-picked 2edd869]
    schuetzcarl authored and WojciechMazur committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    830ed0f View commit details
    Browse the repository at this point in the history
  9. Change options line for tests/neg folder

    [Cherry-picked 1db2afb]
    schuetzcarl authored and WojciechMazur committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    2f81430 View commit details
    Browse the repository at this point in the history
  10. Apply review changes

    [Cherry-picked e3c984e]
    schuetzcarl authored and WojciechMazur committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    7b1b898 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ddc505a View commit details
    Browse the repository at this point in the history