Skip to content

Commit f6dfc4f

Browse files
committed
Fix issue #39
1 parent 32d18e9 commit f6dfc4f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/info/debatty/java/stringsimilarity/ShingleBased.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* @author Thibault Debatty
5252
*/
5353
@Immutable
54-
abstract class ShingleBased {
54+
public abstract class ShingleBased {
5555

5656
private static final int DEFAULT_K = 3;
5757

@@ -67,7 +67,7 @@ abstract class ShingleBased {
6767
* @param k
6868
* @throws IllegalArgumentException if k is <= 0
6969
*/
70-
ShingleBased(final int k) {
70+
public ShingleBased(final int k) {
7171
if (k <= 0) {
7272
throw new IllegalArgumentException("k should be positive!");
7373
}
@@ -86,7 +86,7 @@ abstract class ShingleBased {
8686
*
8787
* @return The length of k-shingles.
8888
*/
89-
public int getK() {
89+
public final int getK() {
9090
return k;
9191
}
9292

@@ -117,5 +117,4 @@ public final Map<String, Integer> getProfile(final String string) {
117117

118118
return Collections.unmodifiableMap(shingles);
119119
}
120-
121120
}

0 commit comments

Comments
 (0)