aboutsummaryrefslogtreecommitdiffstats
path: root/poi-examples/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-12-30 22:32:48 +0000
committerPJ Fanning <fanningpj@apache.org>2021-12-30 22:32:48 +0000
commit075bc7021a6bc90d536182a4ed3ba5ec81270bc7 (patch)
treec273e9bff121cdc368135bf31a18ee15364847c8 /poi-examples/src
parenta83fe7d91f9ae847d3ec77f636409eeff5878a2f (diff)
downloadpoi-075bc7021a6bc90d536182a4ed3ba5ec81270bc7.tar.gz
poi-075bc7021a6bc90d536182a4ed3ba5ec81270bc7.zip
fix switch
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896551 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-examples/src')
-rw-r--r--poi-examples/src/main/java/org/apache/poi/examples/ss/ExcelComparator.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/ExcelComparator.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/ExcelComparator.java
index 109226889e..e0340a2be6 100644
--- a/poi-examples/src/main/java/org/apache/poi/examples/ss/ExcelComparator.java
+++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/ExcelComparator.java
@@ -370,11 +370,6 @@ public class ExcelComparator {
boolean b1, b2;
String borderName;
switch (borderSide) {
- case 't': default:
- b1 = style1.getBorderTop() == BorderStyle.THIN;
- b2 = style2.getBorderTop() == BorderStyle.THIN;
- borderName = "TOP";
- break;
case 'b':
b1 = style1.getBorderBottom() == BorderStyle.THIN;
b2 = style2.getBorderBottom() == BorderStyle.THIN;
@@ -390,6 +385,12 @@ public class ExcelComparator {
b2 = style2.getBorderRight() == BorderStyle.THIN;
borderName = "RIGHT";
break;
+ case 't':
+ default:
+ b1 = style1.getBorderTop() == BorderStyle.THIN;
+ b2 = style2.getBorderTop() == BorderStyle.THIN;
+ borderName = "TOP";
+ break;
}
if (b1 != b2) {
addMessage(loc1, loc2,