Fixed some checkstyle errors
This commit is contained in:
parent
1eced1e9e3
commit
c2e65016fd
@ -195,7 +195,7 @@ public class ChannelBufferInputStream extends InputStream implements DataInput {
|
||||
lineBuf.append((char) b);
|
||||
}
|
||||
|
||||
if (lineBuf.length() > 0 ) {
|
||||
if (lineBuf.length() > 0) {
|
||||
while (lineBuf.charAt(lineBuf.length() - 1) == '\r') {
|
||||
lineBuf.setLength(lineBuf.length() - 1);
|
||||
}
|
||||
|
24
transport/src/main/java/io/netty/bootstrap/package-info.java
Normal file
24
transport/src/main/java/io/netty/bootstrap/package-info.java
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright 2012 The Netty Project
|
||||
*
|
||||
* The Netty Project licenses this file to you under the Apache License,
|
||||
* version 2.0 (the "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at:
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The helper classes with fluent API which enable an easy implementation of
|
||||
* typical client side and server side channel initialization.
|
||||
*
|
||||
* @apiviz.landmark
|
||||
* @apiviz.exclude ^io\.netty\.util\.
|
||||
*/
|
||||
package io.netty.bootstrap;
|
@ -746,7 +746,7 @@ public abstract class AbstractChannel extends DefaultAttributeMap implements Cha
|
||||
}
|
||||
}
|
||||
|
||||
static abstract class FlushCheckpoint {
|
||||
abstract static class FlushCheckpoint {
|
||||
abstract long flushCheckpoint();
|
||||
abstract void flushCheckpoint(long checkpoint);
|
||||
abstract ChannelFuture future();
|
||||
|
@ -25,7 +25,7 @@ public class BlockingOperationException extends IllegalStateException {
|
||||
|
||||
private static final long serialVersionUID = 2462223247762460301L;
|
||||
|
||||
public BlockingOperationException() {}
|
||||
public BlockingOperationException() { }
|
||||
|
||||
public BlockingOperationException(String s) {
|
||||
super(s);
|
||||
|
@ -503,7 +503,7 @@ public abstract class SingleThreadEventExecutor extends AbstractExecutorService
|
||||
|
||||
private final long id = nextTaskId.getAndIncrement();
|
||||
private long deadlineNanos;
|
||||
/** 0 - no repeat, >0 - repeat at fixed rate, <0 - repeat with fixed delay */
|
||||
/* 0 - no repeat, >0 - repeat at fixed rate, <0 - repeat with fixed delay */
|
||||
private final long periodNanos;
|
||||
|
||||
ScheduledFutureTask(Runnable runnable, V result, long nanoTime) {
|
||||
|
@ -22,7 +22,7 @@ import java.util.concurrent.ThreadFactory;
|
||||
|
||||
public class LocalEventLoop extends MultithreadEventLoop {
|
||||
|
||||
public LocalEventLoop() {}
|
||||
public LocalEventLoop() { }
|
||||
|
||||
public LocalEventLoop(int nThreads) {
|
||||
super(nThreads);
|
||||
|
@ -23,7 +23,7 @@ import java.util.concurrent.ThreadFactory;
|
||||
|
||||
public class NioEventLoop extends MultithreadEventLoop {
|
||||
|
||||
public NioEventLoop() {}
|
||||
public NioEventLoop() { }
|
||||
|
||||
public NioEventLoop(int nThreads) {
|
||||
super(nThreads);
|
||||
|
Loading…
Reference in New Issue
Block a user