comparison src/org/eclipse/jetty/io/BuffersFactory.java @ 1006:58a9c4a42292

simplify Buffers code
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Oct 2016 17:21:20 -0600
parents 688b875e18ba
children
comparison
equal deleted inserted replaced
1005:0e96ce3db20a 1006:58a9c4a42292
18 18
19 package org.eclipse.jetty.io; 19 package org.eclipse.jetty.io;
20 20
21 public class BuffersFactory 21 public class BuffersFactory
22 { 22 {
23 public static Buffers newBuffers(Buffers.Type headerType, int headerSize, Buffers.Type bufferType, int bufferSize, Buffers.Type otherType,int maxSize) 23 public static Buffers newBuffers(Buffers.Type headerType, int headerSize, Buffers.Type bufferType, int bufferSize,int maxSize)
24 { 24 {
25 if (maxSize<0) 25 if (maxSize<0)
26 throw new RuntimeException(); 26 throw new RuntimeException();
27 return new PooledBuffers(headerType,headerSize,bufferType,bufferSize,otherType,maxSize); 27 return new PooledBuffers(headerType,headerSize,bufferType,bufferSize,maxSize);
28 } 28 }
29 } 29 }