diff options
Diffstat (limited to 'org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ArtifactInfo.java')
-rw-r--r-- | org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ArtifactInfo.java | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ArtifactInfo.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ArtifactInfo.java index ea5b18ee..b046cabf 100644 --- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ArtifactInfo.java +++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/search/util/ArtifactInfo.java @@ -11,19 +11,22 @@ package org.eclipse.m2e.core.ui.internal.search.util; - /** * Information about the artifact. - * + * * @author Lukas Krecan */ public class ArtifactInfo { private final String groupId; + private final String artifactId; + private final String version; + private final String classfier; + private final String type; - + public ArtifactInfo(String groupId, String artifactId, String version, String classfier, String type) { this.groupId = groupId; this.artifactId = artifactId; @@ -53,26 +56,23 @@ public class ArtifactInfo { } /** - * Constructs a <code>String</code> with all attributes - * in name = value format. - * - * @return a <code>String</code> representation - * of this object. + * Constructs a <code>String</code> with all attributes in name = value format. + * + * @return a <code>String</code> representation of this object. */ - public String toString() - { - final String TAB = " "; //$NON-NLS-1$ - - String retValue = ""; //$NON-NLS-1$ - - retValue = "ArtifactInfo ( " //$NON-NLS-1$ - + "groupId = " + this.groupId + TAB //$NON-NLS-1$ - + "artifactId = " + this.artifactId + TAB //$NON-NLS-1$ - + "version = " + this.version + TAB //$NON-NLS-1$ - + "classfier = " + this.classfier + TAB //$NON-NLS-1$ - + "type = " + this.type + TAB //$NON-NLS-1$ - + " )"; //$NON-NLS-1$ - - return retValue; + public String toString() { + final String TAB = " "; //$NON-NLS-1$ + + String retValue = ""; //$NON-NLS-1$ + + retValue = "ArtifactInfo ( " //$NON-NLS-1$ + + "groupId = " + this.groupId + TAB //$NON-NLS-1$ + + "artifactId = " + this.artifactId + TAB //$NON-NLS-1$ + + "version = " + this.version + TAB //$NON-NLS-1$ + + "classfier = " + this.classfier + TAB //$NON-NLS-1$ + + "type = " + this.type + TAB //$NON-NLS-1$ + + " )"; //$NON-NLS-1$ + + return retValue; } } |