Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
josdem committed Apr 10, 2024
2 parents e5e6d76 + feb0232 commit 7f498f0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion simple-algorithms/counting-character/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
}

def junitJupiterVersion = '5.7.0'
def junitJupiterVersion = '5.10.2'

group 'com.josdem.kata'
version '1.0-SNAPSHOT'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.josdem.kata;

public class CharacterCounter {
public int count(String keyword, char ch) {
return (int) keyword.chars().filter(it -> ch == (char) it).count();
return (int) keyword.chars().filter(it -> ch == it).count();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class CharacterCounterTest {

private CharacterCounter characterCounter = new CharacterCounter();
private final CharacterCounter characterCounter = new CharacterCounter();

@Test
@DisplayName("it counts m character")
Expand Down

0 comments on commit 7f498f0

Please sign in to comment.