Skip to content

Commit 4f9f13f

Browse files
enable MethodName check
1 parent 09a1c18 commit 4f9f13f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

fishercoder_checkstyle.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@
198198
<property name="allowedAnnotations" value="Override, Test"/>
199199
<property name="allowThrowsTagsForSubclasses" value="true"/>
200200
</module>-->
201-
<!--<module name="MethodName">-->
202-
<!--<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>-->
203-
<!--<message key="name.invalidPattern"-->
204-
<!--value="Method name ''{0}'' must match pattern ''{1}''."/>-->
205-
<!--</module>-->
201+
<module name="MethodName">
202+
<property name="format" value="^[a-z][a-zA-Z0-9][a-zA-Z0-9_]*$"/>
203+
<message key="name.invalidPattern"
204+
value="Method name ''{0}'' must match pattern ''{1}''."/>
205+
</module>
206206
<module name="MethodLength">
207207
<property name="tokens" value="METHOD_DEF"/>
208208
<property name="max" value="200000"/>

src/main/java/com/fishercoder/solutions/_486.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class _486 {
4545
--> nums[s]-helper(nums,s+1,e): this player select the front item, leaving the other player a choice from s+1 to e
4646
--> nums[e]-helper(nums,s,e-1): this player select the tail item, leaving the other player a choice from s to e-1
4747
Then take the max of these two options as this player's selection, return it.*/
48-
public boolean PredictTheWinner(int[] nums) {
48+
public boolean predictTheWinner(int[] nums) {
4949
return helper(nums, 0, nums.length-1, new Integer[nums.length][nums.length]) >= 0;
5050
}
5151

0 commit comments

Comments
 (0)