Consolidated Statements of Cash Flows (USD $)
In Thousands, unless otherwise specified
6 Months Ended
Dec. 28, 2014
Dec. 29, 2013
Cash flows from operating activities:    
Net income $ 23,281 $ 66,178
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization 87,143 79,611
Stock-based compensation 33,196 30,250
Excess tax benefit from stock-based payment arrangements (1,651) (14,853)
Loss on disposal or impairment of long-lived assets 2,182 1,417
Amortization of premium/discount on investments 3,537 5,043
Gain on equity method investment (679) 0
Foreign exchange loss on equity method investment 2,156 0
Changes in operating assets and liabilities:    
Accounts receivable, net 5,571 (21,029)
Inventories (47,702) (36,632)
Prepaid expenses and other assets (5,457) (6,148)
Accounts payable, trade (44,784) 40,501
Accrued salaries and wages and other liabilities (28,741) 23,649
Net cash provided by operating activities 28,052 167,987
Cash flows from investing activities:    
Purchases of property and equipment (113,375) (83,450)
Purchases of short-term investments (195,892) (346,799)
Proceeds from maturities of short-term investments 240,463 251,020
Proceeds from sale of property and equipment 60 94
Proceeds from sale of short-term investments 192,153 12,295
Purchases of patent and licensing rights (9,604) (10,046)
Purchase of other long-term investments (80,566) 0
Net cash provided by (used in) investing activities 33,239 (176,886)
Cash flows from financing activities:    
Proceeds from long-term debt borrowings 265,000 0
Payments on long-term debt borrowings (115,000) 0
Net proceeds from issuance of common stock 21,089 73,079
Excess tax benefit from stock-based payment arrangements 1,651 14,853
Repurchases of common stock (320,349) (107)
Net cash (used in) provided by financing activities (147,609) 87,825
Effects of foreign exchange changes on cash and cash equivalents (546) 393
Net (decrease) increase in cash and cash equivalents (86,864) 79,319
Cash and cash equivalents:    
Beginning of period 286,824 190,069
End of period $ 199,960 $ 269,388