Skip to content

Commit 3690bd7

Browse files
vanniktechakarnokd
authored andcommitted
1.x: Remove needless static field for initialization in IndexedRingBuffer. (#4281)
1 parent 0f23a15 commit 3690bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/rx/internal/util/IndexedRingBuffer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ protected IndexedRingBuffer<?> createObject() {
6161

6262
};
6363

64-
static int defaultSize = 256;
65-
6664
/* package for unit testing */static final int SIZE;
6765

6866
// default size of ring buffer
@@ -237,6 +235,8 @@ protected IndexedRingBuffer<?> createObject() {
237235
* } </pre>
238236
*/
239237
static {
238+
int defaultSize = 128;
239+
240240
// lower default for Android (https://github.com/ReactiveX/RxJava/issues/1820)
241241
if (PlatformDependent.isAndroid()) {
242242
defaultSize = 8;

0 commit comments

Comments
 (0)