-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #14715: Enforce new naming convention on RecordTypeParameterName in IT area #14727
Issue #14715: Enforce new naming convention on RecordTypeParameterName in IT area #14727
Conversation
2f47b39
to
5128c8b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, it would be better if the record names were same as filenames just like we do with classes by convention.
Items :
@@ -41,7 +41,7 @@ protected String getCheckName() { | |||
@Test | |||
public void testOne() throws Exception { | |||
final File fileToProcess = new File(getNonCompilablePath( | |||
"SuppressionXpathRegressionRecordTypeParameterName1.java")); | |||
"InputXpathRecordTypeParameterNameExtend.java")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"InputXpathRecordTypeParameterNameExtend.java")); | |
"InputXpathRecordTypeParameterNameTypeDeclared.java")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see the point why you would name it like that. Could you explain it a bit? Basically, why would you add "TypeXXXX" to the file name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test is testing the generic var with extends
and &
synatx.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please read about TypeVariables in java.
https://docs.oracle.com/javase%2F7%2Fdocs%2Fapi%2F%2F/java/lang/reflect/TypeVariable.html
Make changes if you feel my suggestions make more sense than suffixes "Extend" and "Default"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late reply, done
@@ -67,7 +67,7 @@ public void testOne() throws Exception { | |||
@Test | |||
public void testTwo() throws Exception { | |||
final File fileToProcess = new File(getNonCompilablePath( | |||
"SuppressionXpathRegressionRecordTypeParameterName2.java")); | |||
"InputXpathRecordTypeParameterNameDefault.java")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"InputXpathRecordTypeParameterNameDefault.java")); | |
"InputXpathRecordTypeParameterNameTypeDefault.java")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…rameterName in IT area
5128c8b
to
0ba217f
Compare
@MANISH-K-07 I assume you are done? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes @rnveach ,
I think everything looks good here but I'm not in the power to approve so please approve if you agree with the suggestions..
Part of #14715