All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.security.fences.util.Utils Maven / Gradle / Ivy

Go to download

Augments Java's access control by checking that a Maven Project and all its dependencies conform to a policy that specifies which classes/packages can link to which others.

There is a newer version: 1.9-beta
Show newest version
package com.google.security.fences.util;

import org.apache.maven.artifact.Artifact;

/**
 * Miscellaneous side-effect-free utilities.
 */
public final class Utils {
  /** artifact:group:version style Maven artifact identifier. */
  public static String artToString(Artifact art) {
    // TODO: Replace once we update to a version of ArtifactUtils that has
    // key(Artifact)?
    // Is this redundant with Artifact.getId()?  The format of that is not
    // documented.
    return art.getGroupId() + ":" + art.getArtifactId()
        + ":" + art.getVersion();
  }

  private Utils() {
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy