Prickly shrubs

These prickly shrubs (trees?) prevented me from hiking one of the trails this past weekend. The trail looked shady and inviting from distance but these thorns are sharp! – Tecopa, California