Use consistent wording in precondition error messages
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -117,9 +117,9 @@ public class HandshakeInfo {
|
||||
|
||||
Assert.notNull(uri, "URI is required");
|
||||
Assert.notNull(headers, "HttpHeaders are required");
|
||||
Assert.notNull(cookies, "`cookies` are required");
|
||||
Assert.notNull(cookies, "'cookies' are required");
|
||||
Assert.notNull(principal, "Principal is required");
|
||||
Assert.notNull(attributes, "'attributes' is required");
|
||||
Assert.notNull(attributes, "'attributes' are required");
|
||||
|
||||
this.uri = uri;
|
||||
this.headers = headers;
|
||||
|
||||
@@ -64,10 +64,10 @@ public abstract class AbstractWebSocketSession<T> implements WebSocketSession {
|
||||
* Create a new WebSocket session.
|
||||
*/
|
||||
protected AbstractWebSocketSession(T delegate, String id, HandshakeInfo info, DataBufferFactory bufferFactory) {
|
||||
Assert.notNull(delegate, "Native session is required.");
|
||||
Assert.notNull(id, "Session id is required.");
|
||||
Assert.notNull(info, "HandshakeInfo is required.");
|
||||
Assert.notNull(bufferFactory, "DataBuffer factory is required.");
|
||||
Assert.notNull(delegate, "Native session is required");
|
||||
Assert.notNull(id, "Session id is required");
|
||||
Assert.notNull(info, "HandshakeInfo is required");
|
||||
Assert.notNull(bufferFactory, "DataBuffer factory is required");
|
||||
|
||||
this.delegate = delegate;
|
||||
this.id = id;
|
||||
|
||||
Reference in New Issue
Block a user