Skip to content

Commit 694fb3b

Browse files
author
nathan.sweet
committed
Fixed javadocs warnings.
Added Eclipse formatter. git-svn-id: http://kryo.googlecode.com/svn/trunk@367 a9660ef0-a895-11de-8ba5-91705c1537ed
1 parent 25cbdbf commit 694fb3b

File tree

7 files changed

+290
-11
lines changed

7 files changed

+290
-11
lines changed

.settings/org.eclipse.jdt.core.prefs

Lines changed: 280 additions & 0 deletions
Large diffs are not rendered by default.

.settings/org.eclipse.jdt.ui.prefs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
formatter_profile=_libgdx
3+
formatter_settings_version=12

src/com/esotericsoftware/kryo/StreamFactory.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ public interface StreamFactory {
3131
/** Creates a new Input for reading from an InputStream. */
3232
public Input getInput(InputStream inputStream, int bufferSize);
3333

34-
35-
/** Creates an uninitialized Output. {@link #setBuffer(byte[], int)} must be called before the Output is used. */
34+
/** Creates an uninitialized Output. {@link Output#setBuffer(byte[], int)} must be called before the Output is used. */
3635
public Output getOutput();
3736

3837
/** Creates a new Output for writing to a byte array.
@@ -46,11 +45,11 @@ public interface StreamFactory {
4645
public Output getOutput(int bufferSize, int maxBufferSize);
4746

4847
/** Creates a new Output for writing to a byte array.
49-
* @see #setBuffer(byte[]) */
48+
* @see Output#setBuffer(byte[]) */
5049
public Output getOutput(byte[] buffer);
5150

5251
/** Creates a new Output for writing to a byte array.
53-
* @see #setBuffer(byte[], int) */
52+
* @see Output#setBuffer(byte[], int) */
5453
public Output getOutput(byte[] buffer, int maxBufferSize);
5554

5655
/** Creates a new Output for writing to an OutputStream. A buffer size of 4096 is used. */

src/com/esotericsoftware/kryo/io/FastInput.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
public final class FastInput extends Input {
1818

19-
/** Creates an uninitialized Output. {@link #setBuffer(byte[], int)} must be called before the Output is used. */
19+
/** Creates an uninitialized Output. {@link #setBuffer(byte[], int, int)} must be called before the Output is used. */
2020
public FastInput () {
2121
}
2222

@@ -34,7 +34,7 @@ public FastInput (byte[] buffer) {
3434
}
3535

3636
/** Creates a new Output for writing to a byte array.
37-
* @see #setBuffer(byte[], int) */
37+
* @see #setBuffer(byte[], int, int) */
3838
public FastInput (byte[] buffer, int offset, int count) {
3939
super(buffer, offset, count);
4040
}

src/com/esotericsoftware/kryo/io/FastOutput.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ public FastOutput(OutputStream outputStream, int bufferSize) {
7777
super(outputStream, bufferSize);
7878
}
7979

80-
// int
81-
8280
public int writeInt(int value, boolean optimizePositive)
8381
throws KryoException {
8482
writeInt(value);

src/com/esotericsoftware/kryo/serializers/FieldSerializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
* @author Nathan Sweet <[email protected]>
5151
* @author Roman Levenstein <[email protected]> */
5252
public class FieldSerializer<T> extends Serializer<T> implements Comparator<FieldSerializer.CachedField> {
53-
final private Kryo kryo;
54-
final private Class type;
53+
final Kryo kryo;
54+
final Class type;
5555
// type variables declared for this type
5656
final private TypeVariable[] typeParameters;
5757
private CachedField[] fields = new CachedField[0];

test/com/esotericsoftware/kryo/SerializationBenchmarkTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,6 @@ public void readExternal(ObjectInput in) throws IOException,
681681
}
682682

683683
/** {@inheritDoc} */
684-
@SuppressWarnings("FloatingPointEquality")
685684
@Override
686685
public boolean equals(Object other) {
687686
if (this == other)

0 commit comments

Comments
 (0)