]> source.dussan.org Git - poi.git/commitdiff
fix switch
authorPJ Fanning <fanningpj@apache.org>
Thu, 30 Dec 2021 22:32:48 +0000 (22:32 +0000)
committerPJ Fanning <fanningpj@apache.org>
Thu, 30 Dec 2021 22:32:48 +0000 (22:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1896551 13f79535-47bb-0310-9956-ffa450edef68

poi-examples/src/main/java/org/apache/poi/examples/ss/ExcelComparator.java

index 109226889eb2b7b1fb41d1785f5f879abfe53546..e0340a2be66d35f680079fed81b3a7d439275548 100644 (file)
@@ -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,