Author: bodewig
Date: Sun Aug 7 06:55:25 2011
New Revision: 1154665
URL: http://svn.apache.org/viewvc?rev=1154665&view=rev
Log:
@Override is not valid for interface implementations in Java5
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveEntry.java
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveEntry.java
URL:
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveEntry.java?rev=1154665&r1=1154664&r2=1154665&view=diff
==============================================================================
---
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveEntry.java
(original)
+++
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveEntry.java
Sun Aug 7 06:55:25 2011
@@ -116,13 +116,11 @@ public class ArArchiveEntry implements A
}
/** {@inheritDoc} */
- @Override
public long getSize() {
return this.getLength();
}
/** {@inheritDoc} */
- @Override
public String getName() {
return name;
}
@@ -147,7 +145,6 @@ public class ArArchiveEntry implements A
}
/** {@inheritDoc} */
- @Override
public Date getLastModifiedDate() {
return new Date(1000 * getLastModified());
}
@@ -157,7 +154,6 @@ public class ArArchiveEntry implements A
}
/** {@inheritDoc} */
- @Override
public boolean isDirectory() {
return false;
}
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java
URL:
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java?rev=1154665&r1=1154664&r2=1154665&view=diff
==============================================================================
---
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java
(original)
+++
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveEntry.java
Sun Aug 7 06:55:25 2011
@@ -421,7 +421,6 @@ public class CpioArchiveEntry implements
* @return Returns the filesize.
* @see org.apache.commons.compress.archivers.ArchiveEntry#getSize()
*/
- @Override
public long getSize() {
return this.filesize;
}
@@ -515,7 +514,6 @@ public class CpioArchiveEntry implements
*
* @return Returns the name.
*/
- @Override
public String getName() {
return this.name;
}
@@ -580,7 +578,6 @@ public class CpioArchiveEntry implements
}
/** {@inheritDoc} */
- @Override
public Date getLastModifiedDate() {
return new Date(1000 * getTime());
}
@@ -617,7 +614,6 @@ public class CpioArchiveEntry implements
*
* @return TRUE if this entry is a directory.
*/
- @Override
public boolean isDirectory() {
return (this.mode & S_IFMT) == C_ISDIR;
}
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
URL:
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java?rev=1154665&r1=1154664&r2=1154665&view=diff
==============================================================================
---
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
(original)
+++
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
Sun Aug 7 06:55:25 2011
@@ -361,7 +361,6 @@ public class TarArchiveEntry implements
*
* @return This entry's name.
*/
- @Override
public String getName() {
return name.toString();
}
@@ -527,7 +526,6 @@ public class TarArchiveEntry implements
}
/** {@inheritDoc} */
- @Override
public Date getLastModifiedDate() {
return getModTime();
}
@@ -555,7 +553,6 @@ public class TarArchiveEntry implements
*
* @return This entry's file size.
*/
- @Override
public long getSize() {
return size;
}
@@ -640,7 +637,6 @@ public class TarArchiveEntry implements
*
* @return True if this entry is a directory.
*/
- @Override
public boolean isDirectory() {
if (file != null) {
return file.isDirectory();