From a9f6dfb1a7fd8979e3561c23b8d1bedfedada3a7 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 22 Mar 2025 10:21:57 -0400 Subject: [PATCH 1/2] build: bump major version resolves #185 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 09d312d..c5a83a9 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ 4.0.0 com.github.package-url packageurl-java - 1.6.0-SNAPSHOT + 2.0.0-SNAPSHOT jar Package URL From 6bb95fe6090b756f2f3a5f27a9c784f9b4347f0b Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Mon, 24 Mar 2025 08:09:19 -0400 Subject: [PATCH 2/2] chore!: remove deprecated constructor BREAKING CHANGE: deprecated constructor has been removed --- .../com/github/packageurl/PackageURL.java | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/src/main/java/com/github/packageurl/PackageURL.java b/src/main/java/com/github/packageurl/PackageURL.java index aebf73b..e0d78e3 100644 --- a/src/main/java/com/github/packageurl/PackageURL.java +++ b/src/main/java/com/github/packageurl/PackageURL.java @@ -212,31 +212,6 @@ public PackageURL(final String type, final String name) throws MalformedPackageU this(type, null, name, null, (Map) null, null); } - /** - * Constructs a new PackageURL object. - * - * @param type the type of package (i.e., maven, npm, gem, etc.), not {@code null} - * @param namespace the name prefix (i.e., group, owner, organization) - * @param name the name of the package, not {@code null} - * @param version the version of the package - * @param qualifiers an array of key/value pair qualifiers - * @param subpath the subpath string - * @throws MalformedPackageURLException if parsing fails - * @throws NullPointerException if {@code type} or {@code name} are {@code null} - * @deprecated use {@link #PackageURL(String, String, String, String, Map, String)} instead - */ - @Deprecated - public PackageURL( - final String type, - final @Nullable String namespace, - final String name, - final @Nullable String version, - final @Nullable TreeMap qualifiers, - final @Nullable String subpath) - throws MalformedPackageURLException { - this(type, namespace, name, version, qualifiers != null ? (Map) qualifiers : null, subpath); - } - /** * Constructs a new PackageURL object. *