Skip to content

Commit

Permalink
Get rid of JDK7 specific methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Bak committed Jun 16, 2014
1 parent 147cf12 commit 825850e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void onNext(String text) {
}
String[] words = (lastFragment + text).split("[^\\w]{1,}");
int take = words.length;
if (Character.isAlphabetic(text.charAt(text.length() - 1))) {
if (Character.isLetter(text.charAt(text.length() - 1))) {
lastFragment = words[--take];
} else {
lastFragment = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void onNext(String text) {
}
String[] words = (lastFragment + text).split("[^\\w]{1,}");
int take = words.length;
if (Character.isAlphabetic(text.charAt(text.length() - 1))) {
if (Character.isLetter(text.charAt(text.length() - 1))) {
lastFragment = words[--take];
} else {
lastFragment = "";
Expand Down

0 comments on commit 825850e

Please sign in to comment.