[#noissue] Refactor TagUtils to move to util package and deprecate old implementation #13310
+18
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…d implementation
This pull request refactors the usage of the
TagUtilsutility class throughout the codebase, moving references from the old location incom.navercorp.pinpoint.metric.common.modelto the new location incom.navercorp.pinpoint.metric.common.util. It also marks the old class as deprecated and introduces a new implementation for thedefaultTagsmethod. Related test files are updated and relocated accordingly.Refactoring and Deprecation
com.navercorp.pinpoint.metric.common.util.TagUtilsinstead of the deprecatedcom.navercorp.pinpoint.metric.common.model.TagUtilsacross multiple files, includingField.javain both the inspector and metric modules, andDefaultApdexStatService.java. [1] [2] [3]TagUtilsclass incom.navercorp.pinpoint.metric.common.modelas deprecated, and itsdefaultTagsmethod now delegates to the new utility class.Utility Method Enhancement
defaultTagsmethod tocom.navercorp.pinpoint.metric.common.util.TagUtilsto return an empty list if the input isnull, replacing the previous implementation.Test File Relocation
TagUtils, moving it from themodelpackage to theutilpackage to match the new location of the class.