Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Two override annotations when overriding a superclass method #1813

Open
@Abiddarris

Description

@Abiddarris

Issue Checklist

  • I confirm that this issue is not a duplicate and hasn't been reported before.
  • I agree to follow the project's code of conduct.
  • I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-Droid.

Additional terms

  • I understand that providing incomplete or inaccurate information may result in the issue being closed.
  • I agree to provide all requested details promptly for a comprehensive bug report.

Issue explanation

Steps to reproduce:

  1. Create a class that implements Runnable and implement the run method
class MyRunnable implements Runnable {
    @Override
    public void run() {
        // TODO: Implement this method
    }
}
  1. Create a class that extends MyRunnable
class Runnable2 extends MyRunnable {

}
  1. Long press, select <>, select override superclass method, select run() and ok

Result:

class Runnable2 extends MyRunnable {

    @Override
    @Override
    public void run() {
        super.run();
    }
}

Expected behavior

class Runnable2 extends MyRunnable {

    @Override
    public void run() {
        super.run();
    }
}

Version name

Version : v2.7.1-beta (27102)
CI Build : true
Branch : main
Commit : 55bb46b
Variant : arm64-v8a (release)
Build type : OFFICIAL
F-Droid Build : false
F-Droid Version : null
F-Droid Version code : -1
SDK Version : 31
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : samsung
Device : SM-M127F

Download source

GitHub

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions