Browse Source

moved { one line up, extended Cright

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278408 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 20 years ago
parent
commit
2fd3ef91db
3 changed files with 4 additions and 6 deletions
  1. +2
    -3
      src/main/org/apache/tools/ant/taskdefs/Tar.java
  2. +1
    -1
      src/main/org/apache/tools/tar/TarConstants.java
  3. +1
    -2
      src/main/org/apache/tools/tar/TarInputStream.java

+ 2
- 3
src/main/org/apache/tools/ant/taskdefs/Tar.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2004 The Apache Software Foundation
* Copyright 2000-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -371,8 +371,7 @@ public class Tar extends MatchingTask {
TarEntry te = new TarEntry(vPath);
te.setModTime(file.lastModified());
if (!file.isDirectory()) {
if (file.length() > TarConstants.MAXSIZE)
{
if (file.length() > TarConstants.MAXSIZE) {
throw new BuildException("File: " + file + " larger than " +
TarConstants.MAXSIZE + " bytes.");
}


+ 1
- 1
src/main/org/apache/tools/tar/TarConstants.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2002,2004 The Apache Software Foundation
* Copyright 2000-2002,2004-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.


+ 1
- 2
src/main/org/apache/tools/tar/TarInputStream.java View File

@@ -126,8 +126,7 @@ public class TarInputStream extends FilterInputStream {
* @throws IOException for signature
*/
public int available() throws IOException {
if (this.entrySize - this.entryOffset > Integer.MAX_VALUE)
{
if (this.entrySize - this.entryOffset > Integer.MAX_VALUE) {
return Integer.MAX_VALUE;
}
return (int) (this.entrySize - this.entryOffset);


Loading…
Cancel
Save