From 990b52390ffb84d26a8e277011cc0771a0516982 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 79d6291d3f..6d5729446d 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 6c8a5e3351..82f36a971e 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 9a8f5a49a3..a223c81dfb 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 f32f665c8b..882150c903 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 39ef51f37b..c8c3b9d173 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; }