Remove unnecessary modifiers from interfaces
This continues what commit d9ac7ddf10
(Remove unnecessary modifiers from interfaces, 2018-11-15) started.
Change-Id: I89720985a5a986722a0dcb9b5e9bbc25996bd5b3
This commit is contained in:
parent
e751c878b0
commit
647cc8f604
|
@ -57,7 +57,7 @@ public interface ServletBinder {
|
||||||
* the filter to trigger while processing the path.
|
* the filter to trigger while processing the path.
|
||||||
* @return {@code this}.
|
* @return {@code this}.
|
||||||
*/
|
*/
|
||||||
public ServletBinder through(Filter filter);
|
ServletBinder through(Filter filter);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the servlet to execute on this path
|
* Set the servlet to execute on this path
|
||||||
|
@ -65,5 +65,5 @@ public interface ServletBinder {
|
||||||
* @param servlet
|
* @param servlet
|
||||||
* the servlet to execute on this path.
|
* the servlet to execute on this path.
|
||||||
*/
|
*/
|
||||||
public void with(HttpServlet servlet);
|
void with(HttpServlet servlet);
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ public interface LargeFileRepository {
|
||||||
* id of the object to download
|
* id of the object to download
|
||||||
* @return Action for downloading the object
|
* @return Action for downloading the object
|
||||||
*/
|
*/
|
||||||
public Response.Action getDownloadAction(AnyLongObjectId id);
|
Response.Action getDownloadAction(AnyLongObjectId id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get upload action
|
* Get upload action
|
||||||
|
@ -72,7 +72,7 @@ public interface LargeFileRepository {
|
||||||
* size of the object to be uploaded
|
* size of the object to be uploaded
|
||||||
* @return Action for uploading the object
|
* @return Action for uploading the object
|
||||||
*/
|
*/
|
||||||
public Response.Action getUploadAction(AnyLongObjectId id, long size);
|
Response.Action getUploadAction(AnyLongObjectId id, long size);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get verify action
|
* Get verify action
|
||||||
|
@ -83,7 +83,7 @@ public interface LargeFileRepository {
|
||||||
* doesn't support or require verification
|
* doesn't support or require verification
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public Response.Action getVerifyAction(AnyLongObjectId id);
|
Response.Action getVerifyAction(AnyLongObjectId id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get size of an object
|
* Get size of an object
|
||||||
|
@ -94,5 +94,5 @@ public interface LargeFileRepository {
|
||||||
* exist
|
* exist
|
||||||
* @throws java.io.IOException
|
* @throws java.io.IOException
|
||||||
*/
|
*/
|
||||||
public long getSize(AnyLongObjectId id) throws IOException;
|
long getSize(AnyLongObjectId id) throws IOException;
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,5 +117,5 @@ public interface AuthenticationHandler<ParameterType, TokenType>
|
||||||
boolean isDone();
|
boolean isDone();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close();
|
void close();
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,5 +70,5 @@ public interface KeyCache {
|
||||||
* Removes all {@link KeyPair} from this cache and destroys their private
|
* Removes all {@link KeyPair} from this cache and destroys their private
|
||||||
* keys. This cache instance must not be used anymore thereafter.
|
* keys. This cache instance must not be used anymore thereafter.
|
||||||
*/
|
*/
|
||||||
public void close();
|
void close();
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ public interface ReadableChannel extends ReadableByteChannel {
|
||||||
* @throws java.io.IOException
|
* @throws java.io.IOException
|
||||||
* the channel's current position cannot be obtained.
|
* the channel's current position cannot be obtained.
|
||||||
*/
|
*/
|
||||||
public long position() throws IOException;
|
long position() throws IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Seek the current position of the channel to a new offset.
|
* Seek the current position of the channel to a new offset.
|
||||||
|
@ -70,7 +70,7 @@ public interface ReadableChannel extends ReadableByteChannel {
|
||||||
* channel only supports block aligned IO and the current
|
* channel only supports block aligned IO and the current
|
||||||
* position is not block aligned.
|
* position is not block aligned.
|
||||||
*/
|
*/
|
||||||
public void position(long newPosition) throws IOException;
|
void position(long newPosition) throws IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the total size of the channel.
|
* Get the total size of the channel.
|
||||||
|
@ -83,7 +83,7 @@ public interface ReadableChannel extends ReadableByteChannel {
|
||||||
* @throws java.io.IOException
|
* @throws java.io.IOException
|
||||||
* the size cannot be determined.
|
* the size cannot be determined.
|
||||||
*/
|
*/
|
||||||
public long size() throws IOException;
|
long size() throws IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the recommended alignment for reads.
|
* Get the recommended alignment for reads.
|
||||||
|
@ -102,7 +102,7 @@ public interface ReadableChannel extends ReadableByteChannel {
|
||||||
* @return recommended alignment size for randomly positioned reads. Does
|
* @return recommended alignment size for randomly positioned reads. Does
|
||||||
* not need to be a power of 2.
|
* not need to be a power of 2.
|
||||||
*/
|
*/
|
||||||
public int blockSize();
|
int blockSize();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Recommend the channel maintain a read-ahead buffer.
|
* Recommend the channel maintain a read-ahead buffer.
|
||||||
|
@ -131,5 +131,5 @@ public interface ReadableChannel extends ReadableByteChannel {
|
||||||
* @throws java.io.IOException
|
* @throws java.io.IOException
|
||||||
* if the read ahead cannot be adjusted.
|
* if the read ahead cannot be adjusted.
|
||||||
*/
|
*/
|
||||||
public void setReadAheadBytes(int bufferSize) throws IOException;
|
void setReadAheadBytes(int bufferSize) throws IOException;
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ public interface ObjectReuseAsIs {
|
||||||
* the Git type of the object that will be packed.
|
* the Git type of the object that will be packed.
|
||||||
* @return a new instance for this object.
|
* @return a new instance for this object.
|
||||||
*/
|
*/
|
||||||
public ObjectToPack newObjectToPack(AnyObjectId objectId, int type);
|
ObjectToPack newObjectToPack(AnyObjectId objectId, int type);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Select the best object representation for a packer.
|
* Select the best object representation for a packer.
|
||||||
|
@ -114,7 +114,7 @@ public interface ObjectReuseAsIs {
|
||||||
* @throws java.io.IOException
|
* @throws java.io.IOException
|
||||||
* the repository cannot be accessed. Packing will abort.
|
* the repository cannot be accessed. Packing will abort.
|
||||||
*/
|
*/
|
||||||
public void selectObjectRepresentation(PackWriter packer,
|
void selectObjectRepresentation(PackWriter packer,
|
||||||
ProgressMonitor monitor, Iterable<ObjectToPack> objects)
|
ProgressMonitor monitor, Iterable<ObjectToPack> objects)
|
||||||
throws IOException, MissingObjectException;
|
throws IOException, MissingObjectException;
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ public void selectObjectRepresentation(PackWriter packer,
|
||||||
* the stream cannot be written to, or one or more required
|
* the stream cannot be written to, or one or more required
|
||||||
* objects cannot be accessed from the object database.
|
* objects cannot be accessed from the object database.
|
||||||
*/
|
*/
|
||||||
public void writeObjects(PackOutputStream out, List<ObjectToPack> list)
|
void writeObjects(PackOutputStream out, List<ObjectToPack> list)
|
||||||
throws IOException;
|
throws IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -200,7 +200,7 @@ public void writeObjects(PackOutputStream out, List<ObjectToPack> list)
|
||||||
* the stream's write method threw an exception. Packing will
|
* the stream's write method threw an exception. Packing will
|
||||||
* abort.
|
* abort.
|
||||||
*/
|
*/
|
||||||
public void copyObjectAsIs(PackOutputStream out, ObjectToPack otp,
|
void copyObjectAsIs(PackOutputStream out, ObjectToPack otp,
|
||||||
boolean validate) throws IOException,
|
boolean validate) throws IOException,
|
||||||
StoredObjectRepresentationNotAvailableException;
|
StoredObjectRepresentationNotAvailableException;
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ public void copyObjectAsIs(PackOutputStream out, ObjectToPack otp,
|
||||||
* @throws java.io.IOException
|
* @throws java.io.IOException
|
||||||
* the pack cannot be read, or stream did not accept a write.
|
* the pack cannot be read, or stream did not accept a write.
|
||||||
*/
|
*/
|
||||||
public abstract void copyPackAsIs(PackOutputStream out, CachedPack pack)
|
void copyPackAsIs(PackOutputStream out, CachedPack pack)
|
||||||
throws IOException;
|
throws IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -234,6 +234,6 @@ public abstract void copyPackAsIs(PackOutputStream out, CachedPack pack)
|
||||||
* Callers may choose to ignore this and continue as-if there
|
* Callers may choose to ignore this and continue as-if there
|
||||||
* were no cached packs.
|
* were no cached packs.
|
||||||
*/
|
*/
|
||||||
public Collection<CachedPack> getCachedPacksAndUpdate(
|
Collection<CachedPack> getCachedPacksAndUpdate(
|
||||||
BitmapBuilder needBitmap) throws IOException;
|
BitmapBuilder needBitmap) throws IOException;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue