The Makita XHU07Z is an 18V brushless hedge trimmer typically used for seasonal yard maintenance-trim sessions can be intense, but overall annual hours are moderate. Failures often come from blade strikes (damaged teeth), gearbox wear if lubrication is neglected, trigger or safety switch problems, and occasional controller faults from overheating or moisture.
Repair is usually the best move when you can restore performance with new blades, gearbox service, or a switch replacement under the threshold. Replacement becomes more sensible if the motor/controller fails out of warranty or if physical damage has bent the blade drive or cracked the housing, since labor can outweigh the tool's value.
Price referenced from Home Depot's listing for the XHU07Z tool-only. Lifespan is a conservative expectation for battery outdoor tools that see intermittent but demanding use.