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

Unified Diff: java/org/chromium/distiller/filters/heuristics/LargeBlockSameTagLevelToContentFilter.java

Issue 1725243002: Fix some warnings in Eclipse (Closed) Base URL: git@github.com:chromium/dom-distiller.git@master
Patch Set: address comments Created 4 years, 7 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/filters/heuristics/LargeBlockSameTagLevelToContentFilter.java
diff --git a/java/org/chromium/distiller/filters/heuristics/LargeBlockSameTagLevelToContentFilter.java b/java/org/chromium/distiller/filters/heuristics/LargeBlockSameTagLevelToContentFilter.java
index 557d2c2da43b66fa209ed2061c703dba6a026c65..8096f6831998d52e1c6eabdd4edb8588a6a5cf8c 100644
--- a/java/org/chromium/distiller/filters/heuristics/LargeBlockSameTagLevelToContentFilter.java
+++ b/java/org/chromium/distiller/filters/heuristics/LargeBlockSameTagLevelToContentFilter.java
@@ -40,6 +40,7 @@ public final class LargeBlockSameTagLevelToContentFilter implements BoilerpipeFi
private LargeBlockSameTagLevelToContentFilter() {
}
+ @Override
public boolean process(final TextDocument doc) {
boolean changes = false;
@@ -57,7 +58,7 @@ public final class LargeBlockSameTagLevelToContentFilter implements BoilerpipeFi
for (TextBlock tb : doc.getTextBlocks()) {
if (!tb.isContent()) {
-
+
if(tb.getNumWords() >= 100 && tb.getTagLevel() == tagLevel) {
tb.setIsContent(true);
changes = true;

Powered by Google App Engine
This is Rietveld 408576698