Feature to Change component after adding element to testplan #2743
main.yml
on: pull_request
Matrix Preparation
5s
Error Prone (JDK 17)
5m 39s
Matrix: test
Annotations
14 errors and 5 warnings
21, liberica, windows, Pacific/Chatham, tr_TR:
src\core\src\main\java\org\apache\jmeter\gui\util\ChangeElement.java#L1
Replace 88 lines 1..88 with
/*
* 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.jmeter.gui.util;
import javax.swing.JTree;
...68 more lines
|
21, liberica, windows, Pacific/Chatham, tr_TR:
task ':src:core:autostyleJavaCheck'#L1
Execution failed for task ':src:core:autostyleJavaCheck':
See 'What went wrong' below
|
21, liberica, windows, Pacific/Chatham, tr_TR
Execution failed for task ':src:core:autostyleJavaCheck'.
> The following files have format violations:
src\main\java\org\apache\jmeter\gui\util\ChangeElement.java
@@ -1,88 +1,88 @@
-/*\r\n
- * Licensed to the Apache Software Foundation (ASF) under one or more\r\n
- * contributor license agreements. See the NOTICE file distributed with\r\n
- * this work for additional information regarding copyright ownership.\r\n
- * The ASF licenses this file to you under the Apache License, Version 2.0\r\n
- * (the "License"); you may not use this file except in compliance with\r\n
- * the License. You may obtain a copy of the License at\r\n
- *\r\n
- * http://www.apache.org/licenses/LICENSE-2.0\r\n
- *\r\n
- * Unless required by applicable law or agreed to in writing, software\r\n
- * distributed under the License is distributed on an "AS IS" BASIS,\r\n
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n
- * See the License for the specific language governing permissions and\r\n
- * limitations under the License.\r\n
- */\r\n
-\r\n
-package org.apache.jmeter.gui.util;\r\n
-\r\n
-import org.apache.commons.lang3.StringUtils;\r\n
-import org.apache.jmeter.gui.GuiPackage;\r\n
-import org.apache.jmeter.gui.tree.JMeterTreeModel;\r\n
-import org.apache.jmeter.gui.tree.JMeterTreeNode;\r\n
-import org.apache.jmeter.samplers.Sampler;\r\n
-import org.apache.jmeter.testelement.AbstractTestElement;\r\n
-import org.apache.jmeter.testelement.TestElement;\r\n
-import org.apache.jmeter.threads.AbstractThreadGroup;\r\n
-\r\n
-import javax.swing.JTree;\r\n
-import javax.swing.tree.TreeNode;\r\n
-import javax.swing.tree.TreePath;\r\n
-\r\n
-public final class ChangeElement {\r\n
-\r\n
- private static void updateElement(AbstractTestElement newElement, GuiPackage guiPackage, JMeterTreeNode currentNode) {\r\n
- AbstractTestElement currentElement = (AbstractTestElement) currentNode.getUserObject();\r\n
- if (StringUtils.isNotBlank(currentElement.getName())) {\r\n
- newElement.setName(currentElement.getName());\r\n
- }\r\n
-\r\n
- JMeterTreeModel treeModel = guiPackage.getTreeModel();\r\n
- JMeterTreeNode newNode = new JMeterTreeNode(newElement, treeModel);\r\n
- JMeterTreeNode parentNode = (JMeterTreeNode) currentNode.getParent();\r\n
- int index = parentNode.getIndex(currentNode);\r\n
- treeModel.insertNodeInto(newNode, parentNode, index);\r\n
- treeModel.removeNodeFromParent(currentNode);\r\n
-\r\n
- int childCount = currentNode.getChildCount();\r\n
... (128 more lines that didn't fit)
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
|
21, microsoft, windows, America/New_York, tr_TR:
src\core\src\main\java\org\apache\jmeter\gui\util\ChangeElement.java#L1
Replace 88 lines 1..88 with
/*
* 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.jmeter.gui.util;
import javax.swing.JTree;
...68 more lines
|
21, microsoft, windows, America/New_York, tr_TR:
task ':src:core:autostyleJavaCheck'#L1
Execution failed for task ':src:core:autostyleJavaCheck':
See 'What went wrong' below
|
21, microsoft, windows, America/New_York, tr_TR
Execution failed for task ':src:core:autostyleJavaCheck'.
> The following files have format violations:
src\main\java\org\apache\jmeter\gui\util\ChangeElement.java
@@ -1,88 +1,88 @@
-/*\r\n
- * Licensed to the Apache Software Foundation (ASF) under one or more\r\n
- * contributor license agreements. See the NOTICE file distributed with\r\n
- * this work for additional information regarding copyright ownership.\r\n
- * The ASF licenses this file to you under the Apache License, Version 2.0\r\n
- * (the "License"); you may not use this file except in compliance with\r\n
- * the License. You may obtain a copy of the License at\r\n
- *\r\n
- * http://www.apache.org/licenses/LICENSE-2.0\r\n
- *\r\n
- * Unless required by applicable law or agreed to in writing, software\r\n
- * distributed under the License is distributed on an "AS IS" BASIS,\r\n
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n
- * See the License for the specific language governing permissions and\r\n
- * limitations under the License.\r\n
- */\r\n
-\r\n
-package org.apache.jmeter.gui.util;\r\n
-\r\n
-import org.apache.commons.lang3.StringUtils;\r\n
-import org.apache.jmeter.gui.GuiPackage;\r\n
-import org.apache.jmeter.gui.tree.JMeterTreeModel;\r\n
-import org.apache.jmeter.gui.tree.JMeterTreeNode;\r\n
-import org.apache.jmeter.samplers.Sampler;\r\n
-import org.apache.jmeter.testelement.AbstractTestElement;\r\n
-import org.apache.jmeter.testelement.TestElement;\r\n
-import org.apache.jmeter.threads.AbstractThreadGroup;\r\n
-\r\n
-import javax.swing.JTree;\r\n
-import javax.swing.tree.TreeNode;\r\n
-import javax.swing.tree.TreePath;\r\n
-\r\n
-public final class ChangeElement {\r\n
-\r\n
- private static void updateElement(AbstractTestElement newElement, GuiPackage guiPackage, JMeterTreeNode currentNode) {\r\n
- AbstractTestElement currentElement = (AbstractTestElement) currentNode.getUserObject();\r\n
- if (StringUtils.isNotBlank(currentElement.getName())) {\r\n
- newElement.setName(currentElement.getName());\r\n
- }\r\n
-\r\n
- JMeterTreeModel treeModel = guiPackage.getTreeModel();\r\n
- JMeterTreeNode newNode = new JMeterTreeNode(newElement, treeModel);\r\n
- JMeterTreeNode parentNode = (JMeterTreeNode) currentNode.getParent();\r\n
- int index = parentNode.getIndex(currentNode);\r\n
- treeModel.insertNodeInto(newNode, parentNode, index);\r\n
- treeModel.removeNodeFromParent(currentNode);\r\n
-\r\n
- int childCount = currentNode.getChildCount();\r\n
... (128 more lines that didn't fit)
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
|
21, zulu, same hashcode, macos, UTC, de_DE:
src/core/src/main/java/org/apache/jmeter/gui/util/ChangeElement.java#L20
Insert 4 lines:
import javax.swing.JTree;
import javax.swing.tree.TreeNode;
import javax.swing.tree.TreePath;
|
|
21, zulu, same hashcode, macos, UTC, de_DE:
task ':src:core:autostyleJavaCheck'#L1
Execution failed for task ':src:core:autostyleJavaCheck':
See 'What went wrong' below
|
21, zulu, same hashcode, macos, UTC, de_DE
Execution failed for task ':src:core:autostyleJavaCheck'.
> The following files have format violations:
src/main/java/org/apache/jmeter/gui/util/ChangeElement.java
@@ -17,6 +17,10 @@
package org.apache.jmeter.gui.util;
+import javax.swing.JTree;
+import javax.swing.tree.TreeNode;
+import javax.swing.tree.TreePath;
+
import org.apache.commons.lang3.StringUtils;
import org.apache.jmeter.gui.GuiPackage;
import org.apache.jmeter.gui.tree.JMeterTreeModel;
@@ -26,10 +30,6 @@
import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.threads.AbstractThreadGroup;
-import javax.swing.JTree;
-import javax.swing.tree.TreeNode;
-import javax.swing.tree.TreePath;
-
public final class ChangeElement {
private static void updateElement(AbstractTestElement newElement, GuiPackage guiPackage, JMeterTreeNode currentNode) {
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
|
17, oracle, macos, Pacific/Chatham, fr_FR:
src/core/src/main/java/org/apache/jmeter/gui/util/ChangeElement.java#L20
Insert 4 lines:
import javax.swing.JTree;
import javax.swing.tree.TreeNode;
import javax.swing.tree.TreePath;
|
|
17, oracle, macos, Pacific/Chatham, fr_FR:
task ':src:core:autostyleJavaCheck'#L1
Execution failed for task ':src:core:autostyleJavaCheck':
See 'What went wrong' below
|
17, oracle, macos, Pacific/Chatham, fr_FR
Execution failed for task ':src:core:autostyleJavaCheck'.
> The following files have format violations:
src/main/java/org/apache/jmeter/gui/util/ChangeElement.java
@@ -17,6 +17,10 @@
package org.apache.jmeter.gui.util;
+import javax.swing.JTree;
+import javax.swing.tree.TreeNode;
+import javax.swing.tree.TreePath;
+
import org.apache.commons.lang3.StringUtils;
import org.apache.jmeter.gui.GuiPackage;
import org.apache.jmeter.gui.tree.JMeterTreeModel;
@@ -26,10 +30,6 @@
import org.apache.jmeter.testelement.TestElement;
import org.apache.jmeter.threads.AbstractThreadGroup;
-import javax.swing.JTree;
-import javax.swing.tree.TreeNode;
-import javax.swing.tree.TreePath;
-
public final class ChangeElement {
private static void updateElement(AbstractTestElement newElement, GuiPackage guiPackage, JMeterTreeNode currentNode) {
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
|
21, liberica, windows, Pacific/Chatham, tr_TR
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Error Prone (JDK 17)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
21, microsoft, windows, America/New_York, tr_TR
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
21, zulu, same hashcode, macos, UTC, de_DE
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
17, oracle, macos, Pacific/Chatham, fr_FR
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-java@v3, burrunan/gradle-cache-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|