From 41981a4ac90bfc2860dd58f7956b940e068a63dd Mon Sep 17 00:00:00 2001 From: Greg Woolsey Date: Thu, 7 Dec 2017 01:54:21 +0000 Subject: [PATCH] #61841 Add @Override annotations, clean up imports git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1817331 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/usermodel/HSSFEvaluationSheet.java | 1 + src/java/org/apache/poi/ss/formula/EvaluationSheet.java | 1 - .../apache/poi/ss/formula/eval/forked/ForkedEvaluationSheet.java | 1 + .../java/org/apache/poi/xssf/streaming/SXSSFEvaluationSheet.java | 1 + .../java/org/apache/poi/xssf/usermodel/XSSFEvaluationSheet.java | 1 + 5 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFEvaluationSheet.java b/src/java/org/apache/poi/hssf/usermodel/HSSFEvaluationSheet.java index 79d6291d3..6d5729446 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFEvaluationSheet.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFEvaluationSheet.java @@ -43,6 +43,7 @@ final class HSSFEvaluationSheet implements EvaluationSheet { * @see org.apache.poi.ss.formula.EvaluationSheet#getlastRowNum() * @since POI 4.0.0 */ + @Override public int getLastRowNum() { return _lastDefinedRow; } diff --git a/src/java/org/apache/poi/ss/formula/EvaluationSheet.java b/src/java/org/apache/poi/ss/formula/EvaluationSheet.java index 6c8a5e335..82f36a971 100644 --- a/src/java/org/apache/poi/ss/formula/EvaluationSheet.java +++ b/src/java/org/apache/poi/ss/formula/EvaluationSheet.java @@ -17,7 +17,6 @@ package org.apache.poi.ss.formula; -import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.util.Internal; /** diff --git a/src/java/org/apache/poi/ss/formula/eval/forked/ForkedEvaluationSheet.java b/src/java/org/apache/poi/ss/formula/eval/forked/ForkedEvaluationSheet.java index 9a8f5a49a..a223c81df 100644 --- a/src/java/org/apache/poi/ss/formula/eval/forked/ForkedEvaluationSheet.java +++ b/src/java/org/apache/poi/ss/formula/eval/forked/ForkedEvaluationSheet.java @@ -57,6 +57,7 @@ final class ForkedEvaluationSheet implements EvaluationSheet { * @see org.apache.poi.ss.formula.EvaluationSheet#getlastRowNum() * @since POI 4.0.0 */ + @Override public int getLastRowNum() { return _masterSheet.getLastRowNum(); } diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFEvaluationSheet.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFEvaluationSheet.java index f32f665c8..882150c90 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFEvaluationSheet.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFEvaluationSheet.java @@ -42,6 +42,7 @@ final class SXSSFEvaluationSheet implements EvaluationSheet { * @see org.apache.poi.ss.formula.EvaluationSheet#getlastRowNum() * @since POI 4.0.0 */ + @Override public int getLastRowNum() { return _lastDefinedRow; } diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationSheet.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationSheet.java index 39ef51f37..c8c3b9d17 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationSheet.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationSheet.java @@ -49,6 +49,7 @@ final class XSSFEvaluationSheet implements EvaluationSheet { * @see org.apache.poi.ss.formula.EvaluationSheet#getlastRowNum() * @since POI 4.0.0 */ + @Override public int getLastRowNum() { return _lastDefinedRow; }