Skip to content

Commit

Permalink
Remove Jetbrains annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev committed Nov 13, 2019
1 parent e6a6580 commit f2b9264
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
Expand Up @@ -27,7 +27,6 @@
import io.netty.buffer.PooledByteBufAllocator;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jetbrains.annotations.NotNull;

import org.springframework.util.Assert;

Expand Down Expand Up @@ -113,7 +112,6 @@ public DataBuffer allocateBuffer(int initialCapacity) {
return createLeakAwareDataBuffer(this.delegate.allocateBuffer(initialCapacity));
}

@NotNull
private DataBuffer createLeakAwareDataBuffer(DataBuffer delegateBuffer) {
LeakAwareDataBuffer dataBuffer = new LeakAwareDataBuffer(delegateBuffer, this);
if (this.trackCreated.get()) {
Expand Down
Expand Up @@ -40,8 +40,6 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.jetbrains.annotations.NotNull;

import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpRange;
Expand Down Expand Up @@ -322,7 +320,6 @@ private ServletParametersMap(HttpServletRequest servletRequest) {
this.servletRequest = servletRequest;
}

@NotNull
@Override
public Set<Entry<String, List<String>>> entrySet() {
return this.servletRequest.getParameterMap().entrySet().stream()
Expand Down Expand Up @@ -388,7 +385,6 @@ public void clear() {
attributeNames.forEach(this.servletRequest::removeAttribute);
}

@NotNull
@Override
public Set<Entry<String, Object>> entrySet() {
return Collections.list(this.servletRequest.getAttributeNames()).stream()
Expand Down
Expand Up @@ -38,8 +38,6 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.jetbrains.annotations.NotNull;

import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpInputMessage;
Expand Down Expand Up @@ -349,12 +347,12 @@ public int read() throws IOException {
}

@Override
public int read(@NotNull byte[] b, int off, int len) throws IOException {
public int read(byte[] b, int off, int len) throws IOException {
return this.delegate.read(b, off, len);
}

@Override
public int read(@NotNull byte[] b) throws IOException {
public int read(byte[] b) throws IOException {
return this.delegate.read(b);
}

Expand Down
Expand Up @@ -23,8 +23,6 @@

import javax.servlet.http.HttpServletRequest;

import org.jetbrains.annotations.NotNull;

import org.springframework.beans.factory.BeanFactoryUtils;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
Expand Down Expand Up @@ -167,7 +165,7 @@ private void initMessageConverters() {

@Nullable
@Override
protected Object getHandlerInternal(@NotNull HttpServletRequest servletRequest) throws Exception {
protected Object getHandlerInternal(HttpServletRequest servletRequest) throws Exception {
String lookupPath = getUrlPathHelper().getLookupPathForRequest(servletRequest);
servletRequest.setAttribute(LOOKUP_PATH, lookupPath);
if (this.routerFunction != null) {
Expand Down

0 comments on commit f2b9264

Please sign in to comment.