checkstyle
and rat report fixes
diff --git a/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java b/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java
index 1b72a94..6ae700a 100644
--- a/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java
+++ b/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/TobagoDemoController.java
@@ -566,7 +566,7 @@
SolarObject clicked = (SolarObject) ComponentUtil.findParameter(event.getComponent(), "luminary");
boolean add = false;
List<Integer> selectedRows = sheetState.getSelectedRows();
- for (int i = 0, solarListSize = solarList.size(); i < solarListSize; i++) {
+ for (int i = 0; i < solarList.size(); i++) {
if (clicked.getOrbit().equals(solarList.get(i).getOrbit())) {
add = !selectedRows.contains(i);
LOG.info(" add = " + add);
@@ -575,7 +575,7 @@
}
}
- for (int i = 0, solarListSize = solarList.size(); i < solarListSize; i++) {
+ for (int i = 0; i < solarList.size(); i++) {
if (clicked.getOrbit().equals(solarList.get(i).getOrbit())) {
if (add && !selectedRows.contains(i)) {
selectedRows.add(i);
diff --git a/example/test/src/main/webapp/index.html b/example/test/src/main/webapp/index.html
index e988208..ec99d72 100644
--- a/example/test/src/main/webapp/index.html
+++ b/example/test/src/main/webapp/index.html
@@ -1,4 +1,21 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<!--
+ * 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.
+-->
+
<HTML>
<HEAD>
<TITLE>Tobago Test Page</TITLE>
diff --git a/example/test/src/main/webapp/navi.xhtml b/example/test/src/main/webapp/navi.xhtml
index 50e3d61..a00192b 100644
--- a/example/test/src/main/webapp/navi.xhtml
+++ b/example/test/src/main/webapp/navi.xhtml
@@ -1,4 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
<f:view
xmlns:jsp="http://java.sun.com/JSP/Page"
diff --git a/example/test/src/main/webapp/script/test-utils.js b/example/test/src/main/webapp/script/test-utils.js
index c914ac6..a240116 100644
--- a/example/test/src/main/webapp/script/test-utils.js
+++ b/example/test/src/main/webapp/script/test-utils.js
@@ -1,4 +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.
+ */
+
+/*
* Utilities to make client side tests easier.
*/
diff --git a/example/test/src/main/webapp/simple.xhtml b/example/test/src/main/webapp/simple.xhtml
index acfb8ff..31904ed 100644
--- a/example/test/src/main/webapp/simple.xhtml
+++ b/example/test/src/main/webapp/simple.xhtml
@@ -1,4 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
<f:view
xmlns:jsp="http://java.sun.com/JSP/Page"
diff --git a/example/test/src/main/webapp/tc/button/plain.html b/example/test/src/main/webapp/tc/button/plain.html
index ee59bcd..adb2816 100644
--- a/example/test/src/main/webapp/tc/button/plain.html
+++ b/example/test/src/main/webapp/tc/button/plain.html
@@ -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.
+-->
+
+
<html>
<body>
A simple page for the resource test (static).
diff --git a/example/test/src/main/webapp/tc/button/plain_de.html b/example/test/src/main/webapp/tc/button/plain_de.html
index 7c34b33..af1ec77 100644
--- a/example/test/src/main/webapp/tc/button/plain_de.html
+++ b/example/test/src/main/webapp/tc/button/plain_de.html
@@ -1,3 +1,20 @@
+<!--
+ * 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.
+-->
+
<html>
<body>
Eine einfache Seite für den Resourcen-Test (statisch).
diff --git a/example/test/src/main/webapp/tc/popup/z-index.xhtml b/example/test/src/main/webapp/tc/popup/z-index.xhtml
index a258c74..6fa9117 100644
--- a/example/test/src/main/webapp/tc/popup/z-index.xhtml
+++ b/example/test/src/main/webapp/tc/popup/z-index.xhtml
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+
<f:view
xmlns:jsp="http://java.sun.com/JSP/Page"
diff --git a/example/test/src/main/webapp/tc/selectManyCheckbox/selectManyCheckbox.xhtml b/example/test/src/main/webapp/tc/selectManyCheckbox/selectManyCheckbox.xhtml
index 3c4a962..120e54e 100644
--- a/example/test/src/main/webapp/tc/selectManyCheckbox/selectManyCheckbox.xhtml
+++ b/example/test/src/main/webapp/tc/selectManyCheckbox/selectManyCheckbox.xhtml
@@ -1,4 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
<f:view
xmlns:jsp="http://java.sun.com/JSP/Page"
diff --git a/example/test/src/main/webapp/tc/tabGroup/simple.xhtml b/example/test/src/main/webapp/tc/tabGroup/simple.xhtml
index 1ffb917..8b8659d 100644
--- a/example/test/src/main/webapp/tc/tabGroup/simple.xhtml
+++ b/example/test/src/main/webapp/tc/tabGroup/simple.xhtml
@@ -1,4 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
<f:view
xmlns:jsp="http://java.sun.com/JSP/Page"
diff --git a/pom.xml b/pom.xml
index a8ca470..ff6f3f4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,3 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>