apache / apache/uima-uimaj

Change ProcessTraceEvent.getDuration() to return long or Duration

Open
#416 0 comments 0 reactions 0 assignees View on GitHub
⚙️ Refactoring
Dominant language
Java
Stars
71
Forks
39
PR merge metrics
No merged PRs in 30d

Description

**Describe the refactoring action**
Change ProcessTraceEvent.getDuration() to return long or Duration.

**Expected benefit**
Currently, it returns an int which might be truncated.

Contributor guide

Open the contributing guide

Research direction

Start by locating ProcessTraceEvent.getDuration() and inspect its callers and related tests to understand the current duration unit and API expectations. Resolve whether the return type should be long or Duration, then update the affected usages and verify that durations are no longer truncated.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.