Skip to content

Commit

Permalink
Code tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardesco committed Jan 9, 2014
1 parent 773c855 commit 8cbc148
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/main/java/com/lazerycode/jmeter/JMeterAbstractMojo.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.lazerycode.jmeter;

import com.lazerycode.jmeter.configuration.JMeterArgumentsArray;
import com.lazerycode.jmeter.configuration.JMeterPluginsx;
import com.lazerycode.jmeter.configuration.JMeterPlugins;
import com.lazerycode.jmeter.configuration.ProxyConfiguration;
import com.lazerycode.jmeter.configuration.RemoteConfiguration;
import com.lazerycode.jmeter.properties.PropertyHandler;
Expand Down Expand Up @@ -148,7 +148,7 @@ public abstract class JMeterAbstractMojo extends AbstractMojo {
* Value class that wraps all remote configurations.
*/
@Parameter
protected Set<JMeterPluginsx> jmeterPlugins;
protected Set<JMeterPlugins> jmeterPlugins;

/**
* Set a root log level to override all log levels used by JMeter
Expand Down Expand Up @@ -301,7 +301,7 @@ private void extractConfigSettings(Artifact artifact) throws IOException {
}

protected boolean isArtifactMarkedAsAJMeterPlugin(Artifact artifact) {
for (JMeterPluginsx identifiedPlugin : jmeterPlugins) {
for (JMeterPlugins identifiedPlugin : jmeterPlugins) {
if (identifiedPlugin.toString().equals(artifact.getGroupId() + ":" + artifact.getArtifactId())) {
return true;
}
Expand Down Expand Up @@ -336,8 +336,7 @@ protected boolean isArtifactMarkedAsAJMeterPlugin(Artifact artifact) {
* @return true if the given artifact is needed by a explicit dependency.
*/
protected boolean isArtifactAnExplicitDependency(Artifact artifact) {
for (int i = 0; i < pluginDependencies.size(); i++) {
Dependency dependency = pluginDependencies.get(i);
for (Dependency dependency : pluginDependencies) {
if (dependency.getGroupId().equals(artifact.getGroupId())
&& dependency.getArtifactId().equals(artifact.getArtifactId())
&& dependency.getVersion().equals(artifact.getVersion())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @author Mark Collin
*/
public class JMeterPluginsx {
public class JMeterPlugins {

private String groupId = null;
private String artifactId = null;
Expand Down

0 comments on commit 8cbc148

Please sign in to comment.