Revert "Fix unnecessary boxing and incorrect Serializable"

This reverts commit 0ae6f17285.
This commit is contained in:
Norman Maurer 2015-12-31 14:48:10 +01:00
parent 79634e661b
commit 8716b9d4bd
2 changed files with 5 additions and 3 deletions

View File

@ -323,7 +323,9 @@ final class SpdySession {
}
}
private final class StreamComparator implements Comparator<Integer> {
private final class StreamComparator implements Comparator<Integer>, Serializable {
private static final long serialVersionUID = 1161471649740544848L;
StreamComparator() { }

View File

@ -94,7 +94,7 @@ public abstract class AbstractHttp2ConnectionHandlerBuilder<T extends Http2Conne
// * OK to use with server() and connection()
private Http2FrameLogger frameLogger;
private SensitivityDetector headerSensitivityDetector;
private boolean encoderEnforceMaxConcurrentStreams;
private Boolean encoderEnforceMaxConcurrentStreams;
/**
* Returns if HTTP headers should be validated according to
@ -268,7 +268,7 @@ public abstract class AbstractHttp2ConnectionHandlerBuilder<T extends Http2Conne
* would otherwise be exceeded.
*/
protected boolean encoderEnforceMaxConcurrentStreams() {
return encoderEnforceMaxConcurrentStreams;
return encoderEnforceMaxConcurrentStreams != null ? encoderEnforceMaxConcurrentStreams : false;
}
/**