matthews wrote the 4–1 majority opinion in the 1981 supreme court case of "nix v. alaska", in which he ruled that an undercover police officer gaining access to a residence was not a violation of the fourth amendment prohibition against unreasonable searches and seizures, stating, "the use of undercover police agents 'is a highly necessary tool in fighting crime.'"