Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Unified Diff: java/org/chromium/distiller/StringUtil.java

Issue 1725243002: Fix some warnings in Eclipse (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: java/org/chromium/distiller/StringUtil.java
diff --git a/java/org/chromium/distiller/StringUtil.java b/java/org/chromium/distiller/StringUtil.java
index 960e3321947d74a94d7e7ab6b511a2e5b7c14e2c..0782544f8c0a1295c53a52e77cee1702ba6c05f5 100644
--- a/java/org/chromium/distiller/StringUtil.java
+++ b/java/org/chromium/distiller/StringUtil.java
@@ -4,7 +4,6 @@
package org.chromium.distiller;
-import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.regexp.shared.RegExp;
public class StringUtil {
@@ -63,6 +62,7 @@ public class StringUtil {
}
public static class FullWordCounter implements WordCounter {
+ @Override
public native int count(String s) /*-{
// The following range includes broader alphabetical letters and Hangul Syllables.
var m = s.match(/(\S*[\w\u00C0-\u1FFF\uAC00-\uD7AF]\S*)/g);
@@ -76,6 +76,7 @@ public class StringUtil {
}
public static class LetterWordCounter implements WordCounter {
+ @Override
public native int count(String s) /*-{
// The following range includes broader alphabetical letters and Hangul Syllables.
var m = s.match(/(\S*[\w\u00C0-\u1FFF\uAC00-\uD7AF]\S*)/g);
@@ -84,6 +85,7 @@ public class StringUtil {
}
public static class FastWordCounter implements WordCounter {
+ @Override
public native int count(String s) /*-{
// The following range includes broader alphabetical letters.
var m = s.match(/(\S*[\w\u00C0-\u1FFF]\S*)/g);
@@ -113,7 +115,7 @@ public class StringUtil {
public static int countWords(String s) {
return sWordCounter.count(s);
- };
+ }
public static native String regexEscape(String s) /*-{
return s.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");

Powered by Google App Engine
This is Rietveld 408576698