File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
src/main/java/com/github/packageurl Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -583,22 +583,6 @@ private String canonicalize(boolean coordinatesOnly) {
583583 return purl .toString ();
584584 }
585585
586- /**
587- * Some purl types may have specific constraints. This method attempts to verify them.
588- * @param type the purl type
589- * @param namespace the purl namespace
590- * @throws MalformedPackageURLException if constraints are not met
591- */
592- private static void verifyTypeConstraints (String type , @ Nullable String namespace , @ Nullable String name )
593- throws MalformedPackageURLException {
594- if (StandardTypes .MAVEN .equals (type )) {
595- if (isEmpty (namespace ) || isEmpty (name )) {
596- throw new MalformedPackageURLException (
597- "The PackageURL specified is invalid. Maven requires both a namespace and name." );
598- }
599- }
600- }
601-
602586 private static @ Nullable Map <String , String > parseQualifiers (final @ Nullable Map <String , String > qualifiers )
603587 throws MalformedPackageURLException {
604588 if (qualifiers == null || qualifiers .isEmpty ()) {
You can’t perform that action at this time.
0 commit comments