Modify ↓

Opened 6 hours ago

#24944 new task

refactor: optimize OpenDirAction using Java NIO.2 API

Reported by: DanProgs <Abenteurer.2901@…> Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

  • Replace legacy java.io.File with java.nio.file.Path and Files.isDirectory.
  • Avoid duplicate object instantiation by storing the Path object.
  • Handle InvalidPathException to prevent crashes on invalid path strings.
  • Synchronize dirPath state with action enablement to prevent logical side effects.
  • Remove redundant null checks and improve readability.

Attachments (2)

patch_24944.txt​ (1.8 KB ) - added by DanProgs <Abenteurer.2901@…> 6 hours ago.
24944_new.patch​ (1.8 KB ) - added by DanProgs <Abenteurer.2901@…> 4 hours ago.
replaced tabs

Download all attachments as: .zip

Change History (2)

by DanProgs <Abenteurer.2901@…>, 6 hours ago

Attachment: patch_24944.txt​ added

by DanProgs <Abenteurer.2901@…>, 4 hours ago

Attachment: 24944_new.patch​ added

replaced tabs

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to DanProgs <Abenteurer.2901@…>.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.