Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Software Clone in AndroidJoystickJoyInput14.java  #89

@istiaqahmed121998

Description

@istiaqahmed121998

Describe the clone
There is duplicated logic in the AndroidJoystickJoyInput14.java file for remapping joystick button identifiers and logging remapping details when there are changes. This repetitive code segment is found in multiple locations, increasing the complexity of maintenance and readability.

Location of the clones
Filename: AndroidJoystickJoyInput14.java
Line #: 330 and 361

Clone Type
It is a type #2 clone.

Expected outcome
Refactor the AndroidJoystickJoyInput14.java class to remove the duplicate logic for remapping and logging joystick button identifiers. The repeated sections of the code should be encapsulated in a helper method that can be reused wherever necessary, reducing redundancy and improving maintainability.

Capture d’écran, le 2024-11-12 à 01 09 38 Capture d’écran, le 2024-11-12 à 01 12 02 Capture d’écran, le 2024-11-12 à 01 12 43 Capture d’écran, le 2024-11-12 à 01 17 58

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions