Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311381

Change subject: Remove redundant cast to snak
......................................................................

Remove redundant cast to snak

Change-Id: Ic6b277e7b614c2757338f66c0cf2ef76e5ac9c0b
---
M analyzer/src/main/java/org/wikidata/analyzer/Processor/BadDateProcessor.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/analytics/wmde/toolkit-analyzer 
refs/changes/81/311381/1

diff --git 
a/analyzer/src/main/java/org/wikidata/analyzer/Processor/BadDateProcessor.java 
b/analyzer/src/main/java/org/wikidata/analyzer/Processor/BadDateProcessor.java
index e0110e1..d7f24b4 100644
--- 
a/analyzer/src/main/java/org/wikidata/analyzer/Processor/BadDateProcessor.java
+++ 
b/analyzer/src/main/java/org/wikidata/analyzer/Processor/BadDateProcessor.java
@@ -67,7 +67,7 @@
             Statement statement = statements.next();
             Snak snak = statement.getClaim().getMainSnak();
             if (snak instanceof ValueSnak) {
-                Value value = ((ValueSnak) snak).getValue();
+                Value value = snak.getValue();
                 if (value instanceof TimeValue) {
                     TimeValue timeValue = (TimeValue) value;
 

-- 
To view, visit https://gerrit.wikimedia.org/r/311381
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic6b277e7b614c2757338f66c0cf2ef76e5ac9c0b
Gerrit-PatchSet: 1
Gerrit-Project: analytics/wmde/toolkit-analyzer
Gerrit-Branch: master
Gerrit-Owner: Addshore <addshorew...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to