When installing the water line to the dishwasher there is another code requirement you should be aware of.
Both the International Residential Code (IRC 2903.5) and the Uniform Plumbing Code (UPC 609.10) require a water hammer arrestor in the near proximity of all quick-close valves (Dishwasher and laundry washing machines).
Small auxillary water hammer arrestors can be purchased at hardware stores, home supply centers or plumbing supply houses, or you can field manufacture one very easily.
To field manufacture a water hammer arrestor simply install a pipe riser about 12 to 18 inches vertically with a cap on the top. When the water is turned on the air in the riser is forced upward and is trapped in the riser, which allows an air cushin to absorb the pressure shock of a quick acting valve.
