From de2b6ba095f90b62c0f4c47991cf5973a1fa95c1 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 30 Jan 2018 13:31:16 +0000 Subject: [PATCH] add missing licenses to source code git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1822641 13f79535-47bb-0310-9956-ffa450edef68 --- gradle/wrapper/gradle-wrapper.jar | Bin 54212 -> 54212 bytes .../usermodel/TestXSSFSheetShiftColumns.java | 25 +++++++++++++++--- .../helpers/TestXSSFColumnShifting.java | 23 +++++++++++++--- .../usermodel/TestHSSFColumnShifting.java | 20 +++++++++++++- .../usermodel/TestHSSFSheetShiftColumns.java | 20 +++++++++++++- .../ss/usermodel/BaseTestColumnShifting.java | 23 +++++++++++++--- .../usermodel/BaseTestSheetShiftColumns.java | 23 +++++++++++++--- 7 files changed, 119 insertions(+), 15 deletions(-) diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 849557c7efca08a5f9c5a572c4024f847783705c..219c335356cc4a39e1c7cd3fa5261637d4893930 100644 GIT binary patch delta 26 gcmX@IocYLd<_)ojnBQjEZB95OA_!tkF2C#x0H*B>00000 delta 26 gcmX@IocYLd<_)ojn2RcGHzynt5d<+NmtXb;0G#s+Bme*a diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftColumns.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftColumns.java index 698411baa9..f912b43909 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftColumns.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftColumns.java @@ -1,3 +1,21 @@ +/* + * ==================================================================== + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ package org.apache.poi.xssf.usermodel; import java.io.IOException; @@ -8,16 +26,17 @@ import org.apache.poi.xssf.XSSFITestDataProvider; import org.apache.poi.xssf.XSSFTestDataSamples; public class TestXSSFSheetShiftColumns extends BaseTestSheetShiftColumns { - public TestXSSFSheetShiftColumns(){ + public TestXSSFSheetShiftColumns() { super(); workbook = new XSSFWorkbook(); _testDataProvider = XSSFITestDataProvider.instance; } - protected Workbook openWorkbook(String spreadsheetFileName) throws IOException{ + protected Workbook openWorkbook(String spreadsheetFileName) throws IOException { return XSSFTestDataSamples.openSampleWorkbook(spreadsheetFileName); } - protected Workbook getReadBackWorkbook(Workbook wb){ + + protected Workbook getReadBackWorkbook(Workbook wb) { return XSSFTestDataSamples.writeOutAndReadBack(wb); } diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestXSSFColumnShifting.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestXSSFColumnShifting.java index de913f3bb7..e976294f1f 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestXSSFColumnShifting.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestXSSFColumnShifting.java @@ -1,11 +1,29 @@ +/* + * ==================================================================== + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ package org.apache.poi.xssf.usermodel.helpers; import org.apache.poi.ss.usermodel.BaseTestColumnShifting; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel.XSSFWorkbook; -public class TestXSSFColumnShifting extends BaseTestColumnShifting{ - public TestXSSFColumnShifting(){ +public class TestXSSFColumnShifting extends BaseTestColumnShifting { + public TestXSSFColumnShifting() { super(); wb = new XSSFWorkbook(); } @@ -14,5 +32,4 @@ public class TestXSSFColumnShifting extends BaseTestColumnShifting{ columnShifter = new XSSFColumnShifter((XSSFSheet)sheet1); } - } diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFColumnShifting.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFColumnShifting.java index c99b6c159b..50ef3dae12 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFColumnShifting.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFColumnShifting.java @@ -1,10 +1,28 @@ +/* + * ==================================================================== + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ package org.apache.poi.hssf.usermodel; import org.apache.poi.hssf.usermodel.helpers.HSSFColumnShifter; import org.apache.poi.ss.usermodel.BaseTestColumnShifting; public class TestHSSFColumnShifting extends BaseTestColumnShifting { - public TestHSSFColumnShifting(){ + public TestHSSFColumnShifting() { super(); wb = new HSSFWorkbook(); } diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheetShiftColumns.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheetShiftColumns.java index 7b45872118..b9afa51a16 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheetShiftColumns.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheetShiftColumns.java @@ -1,3 +1,21 @@ +/* + * ==================================================================== + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ package org.apache.poi.hssf.usermodel; import java.io.IOException; @@ -10,7 +28,7 @@ import org.junit.Ignore; import org.junit.Test; public class TestHSSFSheetShiftColumns extends BaseTestSheetShiftColumns { - public TestHSSFSheetShiftColumns(){ + public TestHSSFSheetShiftColumns() { super(); workbook = new HSSFWorkbook(); _testDataProvider = HSSFITestDataProvider.instance; diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java index 6ae6067a58..6184d9405b 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java @@ -1,3 +1,21 @@ +/* + * ==================================================================== + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ package org.apache.poi.ss.usermodel; import org.junit.Before; @@ -38,9 +56,8 @@ public class BaseTestColumnShifting { initColumnShifter(); } - protected void initColumnShifter(){ - - } + + protected void initColumnShifter() {} @Test public void testShift3ColumnsRight() { diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetShiftColumns.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetShiftColumns.java index 23483d3fc7..884e3a8119 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetShiftColumns.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetShiftColumns.java @@ -1,3 +1,21 @@ +/* + * ==================================================================== + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ==================================================================== + */ package org.apache.poi.ss.usermodel; import static org.junit.Assert.assertEquals; @@ -22,9 +40,6 @@ public abstract class BaseTestSheetShiftColumns { protected ITestDataProvider _testDataProvider; - public BaseTestSheetShiftColumns(){ - } - @Before public void init() { int rowIndex = 0; @@ -73,7 +88,7 @@ public abstract class BaseTestSheetShiftColumns { row.createCell(0, CellType.STRING).setCellValue("dummy"); } - private CellStyle newCenterBottomStyle(){ + private CellStyle newCenterBottomStyle() { CellStyle style = workbook.createCellStyle(); style.setAlignment(HorizontalAlignment.CENTER); style.setVerticalAlignment(VerticalAlignment.BOTTOM); -- 2.39.5