Skip to content

Commit 12b18fa

Browse files
committed
XML: Remove 'get' from accessor methods
1 parent eae40f4 commit 12b18fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scijava-meta/src/main/java/org/scijava/meta/Manifest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public static Manifest getManifest(final Class<?> c) {
149149
* XML document was loaded as a resource from inside a JAR.
150150
*/
151151
public static Manifest getManifest(final XML xml) throws IOException {
152-
final String path = xml.getPath();
152+
final String path = xml.path();
153153
if (path == null || !path.startsWith("file:")) return null;
154154
final int dotJAR = path.indexOf(".jar!/");
155155
return getManifest(new File(path.substring(5, dotJAR + 4)));

scijava-meta/src/main/java/org/scijava/meta/XML.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ public XML(final String path, final Document doc) {
165165
// -- XML methods --
166166

167167
/** Gets the path to the XML document, or null if none. */
168-
public String getPath() {
168+
public String path() {
169169
return path;
170170
}
171171

172172
/** Gets the XML's DOM representation. */
173-
public Document getDocument() {
173+
public Document document() {
174174
return doc;
175175
}
176176

0 commit comments

Comments
 (0)