You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2018/01/30 13:31:17 UTC

svn commit: r1822641 - in /poi/trunk: gradle/wrapper/ src/ooxml/testcases/org/apache/poi/xssf/usermodel/ src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/ src/testcases/org/apache/poi/hssf/usermodel/ src/testcases/org/apache/poi/ss/usermodel/

Author: fanningpj
Date: Tue Jan 30 13:31:16 2018
New Revision: 1822641

URL: http://svn.apache.org/viewvc?rev=1822641&view=rev
Log:
add missing licenses to source code

Modified:
    poi/trunk/gradle/wrapper/gradle-wrapper.jar
    poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftColumns.java
    poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestXSSFColumnShifting.java
    poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFColumnShifting.java
    poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheetShiftColumns.java
    poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java
    poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetShiftColumns.java

Modified: poi/trunk/gradle/wrapper/gradle-wrapper.jar
URL: http://svn.apache.org/viewvc/poi/trunk/gradle/wrapper/gradle-wrapper.jar?rev=1822641&r1=1822640&r2=1822641&view=diff
==============================================================================
Binary files - no diff available.

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftColumns.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftColumns.java?rev=1822641&r1=1822640&r2=1822641&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftColumns.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetShiftColumns.java Tue Jan 30 13:31:16 2018
@@ -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.XSSFITestData
 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);
     }
 

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestXSSFColumnShifting.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestXSSFColumnShifting.java?rev=1822641&r1=1822640&r2=1822641&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestXSSFColumnShifting.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/helpers/TestXSSFColumnShifting.java Tue Jan 30 13:31:16 2018
@@ -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 exte
         columnShifter = new XSSFColumnShifter((XSSFSheet)sheet1);
     }
 
-
 }

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFColumnShifting.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFColumnShifting.java?rev=1822641&r1=1822640&r2=1822641&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFColumnShifting.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFColumnShifting.java Tue Jan 30 13:31:16 2018
@@ -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();
     }

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheetShiftColumns.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheetShiftColumns.java?rev=1822641&r1=1822640&r2=1822641&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheetShiftColumns.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFSheetShiftColumns.java Tue Jan 30 13:31:16 2018
@@ -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; 

Modified: poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java?rev=1822641&r1=1822640&r2=1822641&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestColumnShifting.java Tue Jan 30 13:31:16 2018
@@ -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() {

Modified: poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetShiftColumns.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetShiftColumns.java?rev=1822641&r1=1822640&r2=1822641&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetShiftColumns.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestSheetShiftColumns.java Tue Jan 30 13:31:16 2018
@@ -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 BaseTestSheetShift
 
     protected ITestDataProvider _testDataProvider;
 
-    public BaseTestSheetShiftColumns(){
-    }
-
     @Before
     public void init() {
         int rowIndex = 0;
@@ -73,7 +88,7 @@ public abstract class BaseTestSheetShift
         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);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org