Polishing

This commit is contained in:
Juergen Hoeller 2019-11-13 16:17:08 +01:00
parent 55011e7a0f
commit 32532a88c1
5 changed files with 12 additions and 12 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2017 the original author or authors. * Copyright 2002-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -50,7 +50,7 @@ public class EventSourceTransportHandler extends AbstractHttpSendingTransportHan
@Override @Override
public boolean checkSessionType(SockJsSession session) { public boolean checkSessionType(SockJsSession session) {
return session instanceof EventSourceStreamingSockJsSession; return (session instanceof EventSourceStreamingSockJsSession);
} }
@Override @Override
@ -66,7 +66,7 @@ public class EventSourceTransportHandler extends AbstractHttpSendingTransportHan
} }
private class EventSourceStreamingSockJsSession extends StreamingSockJsSession { private static class EventSourceStreamingSockJsSession extends StreamingSockJsSession {
public EventSourceStreamingSockJsSession(String sessionId, SockJsServiceConfig config, public EventSourceStreamingSockJsSession(String sessionId, SockJsServiceConfig config,
WebSocketHandler wsHandler, Map<String, Object> attributes) { WebSocketHandler wsHandler, Map<String, Object> attributes) {
@ -76,7 +76,7 @@ public class EventSourceTransportHandler extends AbstractHttpSendingTransportHan
@Override @Override
protected byte[] getPrelude(ServerHttpRequest request) { protected byte[] getPrelude(ServerHttpRequest request) {
return new byte[] { '\r', '\n' }; return new byte[] {'\r', '\n'};
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2018 the original author or authors. * Copyright 2002-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -93,7 +93,7 @@ public class HtmlFileTransportHandler extends AbstractHttpSendingTransportHandle
@Override @Override
public boolean checkSessionType(SockJsSession session) { public boolean checkSessionType(SockJsSession session) {
return session instanceof HtmlFileStreamingSockJsSession; return (session instanceof HtmlFileStreamingSockJsSession);
} }
@Override @Override

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2018 the original author or authors. * Copyright 2002-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -107,7 +107,7 @@ public class WebSocketTransportHandler extends AbstractTransportHandler
@Override @Override
public boolean checkSessionType(SockJsSession session) { public boolean checkSessionType(SockJsSession session) {
return session instanceof WebSocketServerSockJsSession; return (session instanceof WebSocketServerSockJsSession);
} }
@Override @Override

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2017 the original author or authors. * Copyright 2002-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -54,7 +54,7 @@ public class XhrPollingTransportHandler extends AbstractHttpSendingTransportHand
@Override @Override
public boolean checkSessionType(SockJsSession session) { public boolean checkSessionType(SockJsSession session) {
return session instanceof PollingSockJsSession; return (session instanceof PollingSockJsSession);
} }
@Override @Override

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2017 the original author or authors. * Copyright 2002-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -59,7 +59,7 @@ public class XhrStreamingTransportHandler extends AbstractHttpSendingTransportHa
@Override @Override
public boolean checkSessionType(SockJsSession session) { public boolean checkSessionType(SockJsSession session) {
return session instanceof XhrStreamingSockJsSession; return (session instanceof XhrStreamingSockJsSession);
} }
@Override @Override