mirror of https://github.com/apache/kafka.git
				
				
				
			KAFKA-13618: Fix typo in BatchAccumulator (#11715)
Co-authored-by: Kvicii <Karonazaba@gmail.com> Reviewers: Mickael Maison <mickael.maison@gmail.com>
This commit is contained in:
		
							parent
							
								
									fe72187cb1
								
							
						
					
					
						commit
						dd58f81b25
					
				| 
						 | 
					@ -482,7 +482,7 @@ public class BatchAccumulator<T> implements Closeable {
 | 
				
			||||||
            MemoryPool pool,
 | 
					            MemoryPool pool,
 | 
				
			||||||
            ByteBuffer initialBuffer
 | 
					            ByteBuffer initialBuffer
 | 
				
			||||||
        ) {
 | 
					        ) {
 | 
				
			||||||
            Objects.requireNonNull(data.firstBatch(), "Exptected memory records to contain one batch");
 | 
					            Objects.requireNonNull(data.firstBatch(), "Expected memory records to contain one batch");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            this.baseOffset = baseOffset;
 | 
					            this.baseOffset = baseOffset;
 | 
				
			||||||
            this.records = Optional.of(records);
 | 
					            this.records = Optional.of(records);
 | 
				
			||||||
| 
						 | 
					@ -499,7 +499,7 @@ public class BatchAccumulator<T> implements Closeable {
 | 
				
			||||||
            MemoryPool pool,
 | 
					            MemoryPool pool,
 | 
				
			||||||
            ByteBuffer initialBuffer
 | 
					            ByteBuffer initialBuffer
 | 
				
			||||||
        ) {
 | 
					        ) {
 | 
				
			||||||
            Objects.requireNonNull(data.firstBatch(), "Exptected memory records to contain one batch");
 | 
					            Objects.requireNonNull(data.firstBatch(), "Expected memory records to contain one batch");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            this.baseOffset = baseOffset;
 | 
					            this.baseOffset = baseOffset;
 | 
				
			||||||
            this.records = Optional.empty();
 | 
					            this.records = Optional.empty();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue