Abdelrahman Nashaat
Abdelrahman Nashaat

Reputation: 39

How to repair corrupted java class in intellij?

While i was coding java application in intellij my laptop shutdown suddenly when i opened my laptop and opened my project to continue coding ,i found java class which contains 21000 lines of code has damaged and when i opened it in notepad++ it's shown as alot of nulls as shown in the image below , so i want to know how to retrieve this code ?enter image description here

Upvotes: 1

Views: 420

Answers (1)

Bor Laze
Bor Laze

Reputation: 2516

Open your project in IDEA, right-click on class, Local history -> Show history. Here you can revert your code to latest snapshot.

PS: class with 21000 lines of code - it's something... crazy!

Upvotes: 3

Related Questions