Skip to content

Commit

Permalink
minor: tweaks to test clearing PMD warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwin Shin committed Apr 13, 2013
1 parent 75029b1 commit ae48eb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -97,7 +97,7 @@ public List<Triple> apply(Property p) {

private static String expandJCRNamespace(final String name,
NamespaceRegistry nReg) throws RepositoryException {
final String predicatePrefix = name.substring(0, name.indexOf(":"));
final String predicatePrefix = name.substring(0, name.indexOf(':'));
return name.replaceFirst(predicatePrefix + ":", nReg
.getURI(predicatePrefix));
}
Expand Down
Expand Up @@ -17,12 +17,6 @@ public class ObjectDatastreams {
@XmlType(name = "datastream")
public static class DatastreamElement {

public DatastreamElement(String dsid, String label, String mimeType) {
this.dsid = dsid;
this.label = label;
this.mimeType = mimeType;
}

@XmlAttribute
public String dsid;

Expand All @@ -32,6 +26,12 @@ public DatastreamElement(String dsid, String label, String mimeType) {
@XmlAttribute
public String mimeType;

public DatastreamElement(String dsid, String label, String mimeType) {
this.dsid = dsid;
this.label = label;
this.mimeType = mimeType;
}

public DatastreamElement() {
}
}
Expand Down

0 comments on commit ae48eb4

Please sign in to comment.