Skip to content

Commit 462c2a0

Browse files
committed
docs: minor fixes
1 parent e599910 commit 462c2a0

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

msgpack-core/src/main/java/org/msgpack/core/buffer/MessageBuffer.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
* <p>
3939
* MessageBuffer class itself is optimized for little-endian CPU archtectures so that JVM (HotSpot) can take advantage
4040
* of the fastest JIT format which skips TypeProfile checking. To ensure this performance, applications must not load
41-
* unnecessary classes such as MessagePackBE. On big-endian CPU archtectures, implementation uses subclass that
42-
* includes TypeProfile overhead but still faster than ByteBuffer. On JVMs older than Java 7 and JVMs without Unsafe
43-
* API (such as Android), implementation falls back to a universal implementation that uses standard ByteBuffer class
41+
* unnecessary classes such as MessagePackBE. On big-endian CPU archtectures, it automatically uses a subclass that
42+
* includes TypeProfile overhead but still faster than stndard ByteBuffer class. On JVMs older than Java 7 and JVMs
43+
* without Unsafe API (such as Android), implementation falls back to an universal implementation that uses ByteBuffer
4444
* internally.
4545
*/
4646
public class MessageBuffer
@@ -77,7 +77,8 @@ public class MessageBuffer
7777
try {
7878
int major = Integer.parseInt(javaVersion.substring(0, dotPos));
7979
int minor = Integer.parseInt(javaVersion.substring(dotPos + 1));
80-
isJavaAtLeast7 = major > 1 || (major == 1 && minor >= 7); }
80+
isJavaAtLeast7 = major > 1 || (major == 1 && minor >= 7);
81+
}
8182
catch (NumberFormatException e) {
8283
e.printStackTrace(System.err);
8384
}

msgpack-core/src/main/java/org/msgpack/core/buffer/MessageBufferOutput.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface MessageBufferOutput
3131
/**
3232
* Allocates the next buffer to write.
3333
* <p>
34-
* This method should return a MessageBuffer instance that has at least specified size of capacity.
34+
* This method should return a MessageBuffer instance that has specified size of capacity at least.
3535
* <p>
3636
* When this method is called twice, the previously returned buffer is no longer used. This method may be called
3737
* twice without call of {@link writeBuffer(MessageBuffer)} in between. In this case, the buffer should be
@@ -51,7 +51,7 @@ MessageBuffer next(int minimumSize)
5151
* bytes. Once the buffer is written, the buffer is no longer used.
5252
* <p>
5353
* This method is not always called for each {@link next(int)} call. In this case, the buffer should be discarded
54-
* without flushing it to the output.
54+
* without flushing it to the output when the next {@link next(int)} is called.
5555
*
5656
* @param length the number of bytes to write
5757
* @throws IOException

0 commit comments

Comments
 (0)