Skip to content

Commit 681b0aa

Browse files
authored
fix: deprecate original constructor after replacement added via #155 (#181)
1 parent 889d52d commit 681b0aa

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
@@ -81,15 +81,17 @@ public PackageURL(final String type, final String name) throws MalformedPackageU
8181
/**
8282
* Constructs a new PackageURL object.
8383
*
84-
* @param type the type of package (i.e. maven, npm, gem, etc)
84+
* @param type the type of package (i.e. maven, npm, gem, etc)
8585
* @param namespace the name prefix (i.e. group, owner, organization)
86-
* @param name the name of the package
87-
* @param version the version of the package
86+
* @param name the name of the package
87+
* @param version the version of the package
8888
* @param qualifiers an array of key/value pair qualifiers
89-
* @param subpath the subpath string
89+
* @param subpath the subpath string
9090
* @throws MalformedPackageURLException if parsing fails
9191
* @since 1.0.0
92+
* @deprecated use {@link #PackageURL(String, String, String, String, Map, String)} instead
9293
*/
94+
@Deprecated
9395
public PackageURL(final String type, final String namespace, final String name, final String version,
9496
final TreeMap<String, String> qualifiers, final String subpath)
9597
throws MalformedPackageURLException {

0 commit comments

Comments
 (0)