Permalink
Browse files

[ignore] code cleanup

  • Loading branch information...
1 parent 975a2e4 commit fe141a587b8499746bfb675b594e49bc7df6ee24 @adamretter adamretter committed Nov 12, 2013
Showing with 17 additions and 13 deletions.
  1. +17 −13 src/org/exist/client/ResourceDescriptor.java
@@ -32,14 +32,14 @@
* @author gpothier
*/
public abstract class ResourceDescriptor {
- private XmldbURI name;
- private String owner;
- private String group;
- private String permissions;
- private Date date;
+ private final XmldbURI name;
+ private final String owner;
+ private final String group;
+ private final String permissions;
+ private final Date date;
- public ResourceDescriptor(XmldbURI aName, String aOwner,
- String aGroup, String aPermissions, Date date ) {
+ public ResourceDescriptor(final XmldbURI aName, final String aOwner,
+ final String aGroup, final String aPermissions, final Date date ) {
name = aName;
owner = aOwner;
group = aGroup;
@@ -63,31 +63,35 @@ public String getPermissions() {
return permissions;
}
- public Date getDate() {
- return date;
- }
+ public Date getDate() {
+ return date;
+ }
public abstract boolean isCollection();
public static class Document extends ResourceDescriptor {
- public Document(XmldbURI aName, String aOwner, String aGroup, String aPermissions, Date date) {
+ public Document(final XmldbURI aName, final String aOwner,
+ final String aGroup, final String aPermissions, final Date date) {
super(aName, aOwner, aGroup, aPermissions, date);
}
+ @Override
public boolean isCollection() {
return false;
}
}
public static class Collection extends ResourceDescriptor {
- public Collection(XmldbURI aName) {
+ public Collection(final XmldbURI aName) {
super(aName, null, null, null, null);
}
- public Collection(XmldbURI aName, String aOwner, String aGroup, String aPermissions, Date date) {
+ public Collection(final XmldbURI aName, final String aOwner,
+ final String aGroup, final String aPermissions, final Date date) {
super(aName, aOwner, aGroup, aPermissions, date);
}
+ @Override
public boolean isCollection() {
return true;
}

0 comments on commit fe141a5

Please sign in to comment.