Skip to content

Commit ef9215e

Browse files
committed
Deprecate original constructor after package-url#155
1 parent 62ac909 commit ef9215e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/java/com/github/packageurl/PackageURL.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,17 @@ public PackageURL(final String type, final String name) throws MalformedPackageU
8383
/**
8484
* Constructs a new PackageURL object.
8585
*
86-
* @param type the type of package (i.e. maven, npm, gem, etc)
86+
* @param type the type of package (i.e. maven, npm, gem, etc)
8787
* @param namespace the name prefix (i.e. group, owner, organization)
88-
* @param name the name of the package
89-
* @param version the version of the package
88+
* @param name the name of the package
89+
* @param version the version of the package
9090
* @param qualifiers an array of key/value pair qualifiers
91-
* @param subpath the subpath string
91+
* @param subpath the subpath string
9292
* @throws MalformedPackageURLException if parsing fails
9393
* @since 1.0.0
94+
* @deprecated use {@link #PackageURL(String, String, String, String, Map, String)} instead
9495
*/
96+
@Deprecated
9597
public PackageURL(final String type, final String namespace, final String name, final String version,
9698
final TreeMap<String, String> qualifiers, final String subpath)
9799
throws MalformedPackageURLException {

0 commit comments

Comments
 (0)