Skip to content

Commit 60d4bbf

Browse files
committed
POM.java: tweak style and formatting
1 parent 30e577d commit 60d4bbf

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/main/java/org/scijava/util/POM.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public POM(final InputStream in) throws ParserConfigurationException,
6262
}
6363

6464
/** Parses a POM from the given string. */
65-
public POM(final String s) throws ParserConfigurationException,
66-
SAXException, IOException
65+
public POM(final String s) throws ParserConfigurationException, SAXException,
66+
IOException
6767
{
6868
super(s);
6969
}
@@ -103,11 +103,14 @@ public static POM getPOM(final Class<?> c, final String groupId,
103103
{
104104
try {
105105
final URL location = ClassUtils.getLocation(c);
106-
if (!location.getProtocol().equals("file") || location.toString().endsWith(".jar")) {
106+
if (!location.getProtocol().equals("file") ||
107+
location.toString().endsWith(".jar"))
108+
{
107109
// look for pom.xml in JAR's META-INF/maven subdirectory
108110
final String pomPath =
109111
"META-INF/maven/" + groupId + "/" + artifactId + "/pom.xml";
110-
final URL pomURL = new URL("jar:" + location.toString() + "!/" + pomPath);
112+
final URL pomURL =
113+
new URL("jar:" + location.toString() + "!/" + pomPath);
111114
final InputStream pomStream = pomURL.openStream();
112115
return new POM(pomStream);
113116
}

0 commit comments

Comments
 (0)