A California judge threw away a copyright lawsuit against Taylor Swift by using Swift's own lyrics.

Musician Jessie Braham filed the suit claiming that Swift took lyrics from his song "Haters Gone Hate" and used them in her song "Shake It Off," the lead single from her hit "1989" album.

Where Braham's song includes the lyrics, "Haters gone hate, playas gone play. Watch out for them fakers, they'll fake you every day," Swift's song goes, "'Cause the players gonna play, play, play, play, play. And the haters gonna hate, hate, hate, hate, hate ... And the fakers gonna fake, fake, fake, fake, fake."

In her dismissal of the case, District Court Judge Gail Standish borrowed words from Swift's songs "We Are Never Ever Getting Back Together" and "Blank Space."

"At present, the Court is not saying that Braham can never, ever, ever get his case back in court. But, for now, we have got problems, and the Court is not sure Braham can solve them," she wrote.

She continued, "As currently drafted, the Complaint has a blank space—one that requires Braham to do more than write his name. And, upon consideration of the Court's explanation ... Braham may discover that mere pleading Band-Aids will not fix the bullet holes in his case. At least for the moment, Defendants have shaken off this lawsuit."

Standish ruled that Braham did not provide enough factual evidence, according to CNN, and if he corrects the problems in his lawsuit, he could file a new copyright complaint.

Here is the judge's order:

A ridiculous Taylor Swift dismissal order is the only way to toss out a ridiculous Taylor Swift #copyright lawsuit. pic.twitter.com/5JAc7iAzVz — Bill Donahue (@BDonahueLaw360) November 12, 2015