You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 27, 2025. It is now read-only.
Describe the clone
The clone in file, AndroidGestureProcessor, consists of two methods, onShowPress and onLongPress, which perform almost identical actions for handling press events, differing only in the event type used.
Location of the clones
Starting at line Starting at line 96 of C:\jmonkeyengineFall2024\jme3-android\src\main\java\com\jme3\input\android\AndroidGestureProcessor.java
Starting at line 110 of C:\jmonkeyengineFall2024\jme3-android\src\main\java\com\jme3\input\android\AndroidGestureProcessor.java
Expected outcome
The duplicate logic in onShowPress and onLongPress will be moved into a single method, pressEventHandler, which takes the event type as a parameter. This method will handle both types of press events, reducing code repetition.