comparison src/ch/ethz/ssh2/SFTPv6FileAttributes.java @ 305:d2b303406d63 ganymed

remove extra override annotations that generate eclipse compiler errors
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 12:09:51 -0700
parents 91a31873c42a
children 071eccdff8ea
comparison
equal deleted inserted replaced
304:abad243cb341 305:d2b303406d63
113 * Checks if this entry is a directory. 113 * Checks if this entry is a directory.
114 * 114 *
115 * @return Returns true if permissions are available and they indicate 115 * @return Returns true if permissions are available and they indicate
116 * that this entry represents a directory. 116 * that this entry represents a directory.
117 */ 117 */
118 @Override
119 public boolean isDirectory() { 118 public boolean isDirectory() {
120 return (type & AttribTypes.SSH_FILEXFER_TYPE_DIRECTORY) == AttribTypes.SSH_FILEXFER_TYPE_DIRECTORY; 119 return (type & AttribTypes.SSH_FILEXFER_TYPE_DIRECTORY) == AttribTypes.SSH_FILEXFER_TYPE_DIRECTORY;
121 } 120 }
122 121
123 /** 122 /**
124 * Checks if this entry is a regular file. 123 * Checks if this entry is a regular file.
125 * 124 *
126 * @return Returns true if permissions are available and they indicate 125 * @return Returns true if permissions are available and they indicate
127 * that this entry represents a regular file. 126 * that this entry represents a regular file.
128 */ 127 */
129 @Override
130 public boolean isRegularFile() { 128 public boolean isRegularFile() {
131 return (type & AttribTypes.SSH_FILEXFER_TYPE_REGULAR) == AttribTypes.SSH_FILEXFER_TYPE_REGULAR; 129 return (type & AttribTypes.SSH_FILEXFER_TYPE_REGULAR) == AttribTypes.SSH_FILEXFER_TYPE_REGULAR;
132 } 130 }
133 131
134 /** 132 /**
135 * Checks if this entry is a a symlink. 133 * Checks if this entry is a a symlink.
136 * 134 *
137 * @return Returns true if permissions are available and they indicate 135 * @return Returns true if permissions are available and they indicate
138 * that this entry represents a symlink. 136 * that this entry represents a symlink.
139 */ 137 */
140 @Override
141 public boolean isSymlink() { 138 public boolean isSymlink() {
142 return (type & AttribTypes.SSH_FILEXFER_TYPE_SYMLINK) == AttribTypes.SSH_FILEXFER_TYPE_SYMLINK; 139 return (type & AttribTypes.SSH_FILEXFER_TYPE_SYMLINK) == AttribTypes.SSH_FILEXFER_TYPE_SYMLINK;
143 } 140 }
144 141
145 public SFTPv6FileAttributes() { 142 public SFTPv6FileAttributes() {
262 * attributes from the server and when sending file attributes to the 259 * attributes from the server and when sending file attributes to the
263 * server. 260 * server.
264 * 261 *
265 * @return Encoded attributes 262 * @return Encoded attributes
266 */ 263 */
267 @Override
268 public byte[] toBytes() { 264 public byte[] toBytes() {
269 TypesWriter tw = new TypesWriter(); 265 TypesWriter tw = new TypesWriter();
270 // The 'valid-attribute-flags' specifies which of the fields are present. Those fields 266 // The 'valid-attribute-flags' specifies which of the fields are present. Those fields
271 // for which the corresponding flag is not set are not present 267 // for which the corresponding flag is not set are not present
272 int attrFlags = 0; 268 int attrFlags = 0;