Files
openide/java/java-tests/testData/inspection/extractMethodRecommender/ExtractMethodRecommenderComment.java
Tagir Valeev e573732e7c [java-inspections] Extract method recommender: do not include initial comment into the length
Fixes IDEA-354492 "Method can be extracted" includes comments as minimum code length

GitOrigin-RevId: 3d4e34e6726f7917fe3b0224653b89f07cd2ae42
2024-06-21 13:49:43 +00:00

18 lines
553 B
Java

import java.util.*;
public class ExtractMethodRecommenderComment {
void testLongCommentBefore() {
// We are creating a new Date object here and set it's to 12 hours
// We are creating a new Date object here and set it's to 12 hours
// We are creating a new Date object here and set it's to 12 hours
Date d = new Date();
d.setHours(12);
System.out.println(d);
System.out.println(d);
System.out.println(d);
System.out.println(d);
System.out.println(d);
System.out.println(d);
System.out.println(d);
}
}