java/src/org/openantivirus/engine/vfs/entry TemporaryIsVfsEntry.java,1.1,1.2 FileVfsEntry.java,1.2,1.3
Kurt Huwig <[email protected]> Sat, 03 Sep 2005 16:16:42 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/java/src/org/openantivirus/engine/vfs/entry
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28211/src/org/openantivirus/engine/vfs/entry
Modified Files:
TemporaryIsVfsEntry.java FileVfsEntry.java
Log Message:
Code cleanup
Index: TemporaryIsVfsEntry.java
===================================================================
RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/engine/vfs/entry/TemporaryIsVfsEntry.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- TemporaryIsVfsEntry.java 14 Dec 2003 11:08:26 -0000 1.1
+++ TemporaryIsVfsEntry.java 3 Sep 2005 16:16:40 -0000 1.2
@@ -39,8 +39,6 @@
*/
public class TemporaryIsVfsEntry extends TemporaryVfsEntry {
- private static final int BUFFER_SIZE = 32768;
-
private final byte[] start;
private final InputStream is;
private boolean fileComplete;
Index: FileVfsEntry.java
===================================================================
RCS file: /cvsroot/openantivirus/java/src/org/openantivirus/engine/vfs/entry/FileVfsEntry.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- FileVfsEntry.java 20 May 2004 13:04:50 -0000 1.2
+++ FileVfsEntry.java 3 Sep 2005 16:16:40 -0000 1.3
@@ -46,12 +46,12 @@
private final File file;
private final String name;
- public FileVfsEntry(File file) throws IOException {
+ public FileVfsEntry(File file) {
this.file = file;
name = getRelativeName(file);
}
- public FileVfsEntry(File file, String name) throws IOException {
+ public FileVfsEntry(File file, String name) {
this.file = file;
this.name = name;
}
@@ -86,10 +86,8 @@
public static String getRelativeName(File file) {
final String parent = file.getParent();
- if (parent != null) {
- return parent + File.separatorChar + file.getName();
- } else {
- return file.getName();
- }
+ return parent != null
+ ? parent + File.separatorChar + file.getName()
+ : file.getName();
}
}
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf