JackieTien97 opened a new pull request, #16934: URL: https://github.com/apache/iotdb/pull/16934
This pull request refactors methods related to retrieving file paths from `Binary` objects in the `ObjectTypeUtils` class to simplify and clarify their usage. The main focus is to consolidate redundant methods and update their usage throughout the codebase. **Refactoring of file path retrieval methods:** * The `getObjectPathFromBinary(Binary binary)` method now delegates to a new overloaded method that accepts a `needTempFile` parameter, improving code clarity and reducing duplication. * The previously used `getNullableObjectPathFromBinary` method has been removed in favor of the new `getObjectPathFromBinary(Binary binary, boolean needTempFile)` method, streamlining the API. * All internal usages, such as in `deleteObjectPathFromBinary`, have been updated to use the new method signature. **Minor cleanup:** * Removed an unused import of `TSFileConfig` from the file. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
