From 6c7a9314db4ca98068e8f557f046a487a1fd4512 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Tue, 24 Nov 2015 07:05:11 +0000 Subject: [PATCH] rewrite ternary expression as simple Math.min call (yes, the ternary expression as written is equivalent to min, not max, despite the variable being called max. I'll leave that fix up to the original author). git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716044 13f79535-47bb-0310-9956-ffa450edef68 --- src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java index 39adc25f6d..8419de6e46 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java @@ -141,8 +141,9 @@ public class XSSFTable extends POIXMLDocumentPart { commonTokens = tokens; } else { - int maxLenght = commonTokens.length>tokens.length? tokens.length:commonTokens.length; - for (int i =0; i subCommonTokens = Arrays.asList(commonTokens).subList(0, i); -- 2.39.5