A judge has dismissed a $42 million copyright lawsuit against Taylor Swift by quoting lyrics from the pop star's songs.

United States District Court Judge Gail Standish used lyrics from We Are Never Getting Back Together and Blank Space as she threw out the case from musician Jesse Braham in a California court on Tuesday.

'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,' the judge wrote.

Scroll down for video

Never ever! A judge has thrown out a musician's claim that Taylor Swift stole his lyrics from his song Haters Gonna Hate for her hit single Shake It Off

Taylor was being sued by musician Braham, who alleged she stole his lyrics for her hit Shake It Off. He was seeking $42 million in damages and a songwriting credit.

R&B singer Braham, who performs as Jesse Graham, claimed 92 per cent of Taylor's lyrics came from his original song Haters Gone Hate, which he copyrighted in 2013CNN reported.

His lyrics are: 'Haters gone hate, playas gone play. Watch out for them fakers, they'll fake you everyday.'

He claimed they were stolen by Taylor, whose song has the lyrics: 'Cause the players gonna play, play, play, play, play. And the haters gonna hate, hate, hate, hate, hate.'

And goes on: 'And the fakers gonna fake, fake, fake, fake, fake.'

See more of the latest Taylor Swift news, pictures and video updates

Decided: The judge explained her reasoning by quoting Taylor's songs as she dismissed the case

Bust a move: Taylor tried out different dance styles in the Shake It Off video

Feeling free: The pop star showed off her moves as a ballerina in the Shake It Off music video

Taylor's song was included in her megahit album 1989, which came out last year.

However, the judge dismissed the case, also working in references to Taylor's hit Blank Space into her legal decision.

'As currently drafted, the Complaint has a blank space - one that requires Braham to do more than write his name' she wrote.

Too cool: The Bad Blood singer wore a glittery jacket and sunglasses while performing in Shanghai on Tuesday

Giving it her all: The songwriter wore a black leather jumpsuit while performing Mad Love and Bad Blood in Shanghai on Tuesday

'And, upon consideration of the Court's explanation ... Braham may discover that mere pleading BandAids will not fix the bullet holes in his case.

'At least for the moment, Defendants have shaken off this lawsuit.'

Jessie did not provide enough factual evidence to lift his allegations above a speculative level, she ruled.

Taylor is currently on tour in Asia, and just completed sold-out dates in Singapore and China as she continues her blockbuster 1989 World Tour.