netty作为异步通信底层框架,其优异的性能让我产生了研究他的源码的决定。
代码研究之前,第一步就是要准备环境,至少可以编译通过,下面,就拿github上的4.1分支进行。我的IDE是Intellij IDEA 2016 community版本, 操作系统是Windows 7。
一开始,就踩雷了,起初,我的源码是在Github上,通过zip的方式获取4.0分支的代码,编译的时候,总是报错。各种line endings的错误,日志如下:
1 "C:\Program Files\Java\jdk1.7.0_45\bin\java" -Dmaven.multiModuleProjectDirectory=D:\Knowledge\SOURCE\netty\netty-4.0\common -Dmaven.home=E:\Software\apache-maven-3.3.9 -Dclassworlds.conf=E:\Software\apache-maven-3.3.9\bin\m2.conf -Didea.launcher.port=7533 "-Didea.launcher.bin.path=D:\SelfInstalled\intelliJ\IntelliJ IDEA Community Edition 2016.2.5\bin" -Dfile.encoding=UTF-8 -classpath "E:\Software\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;D:\SelfInstalled\intelliJ\IntelliJ IDEA Community Edition 2016.2.5\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.2.5 --update-snapshots -s D:\MyDocuments\chengsh05\.m2\settings.xml -Dmaven.repo.local=D:\MyDocuments\chengsh05\.m2\repository package -P coverage 2 [INFO] Scanning for projects... 3 [INFO] ------------------------------------------------------------------------ 4 [INFO] Detecting the operating system and CPU architecture 5 [INFO] ------------------------------------------------------------------------ 6 [INFO] os.detected.name: windows 7 [INFO] os.detected.arch: x86_64 8 [INFO] os.detected.version: 6.1 9 [INFO] os.detected.version.major: 6 10 [INFO] os.detected.version.minor: 1 11 [INFO] os.detected.classifier: windows-x86_64 12 [INFO] 13 [INFO] ------------------------------------------------------------------------ 14 [INFO] Building Netty/Common 4.0.43.Final-SNAPSHOT 15 [INFO] ------------------------------------------------------------------------ 16 [INFO] 17 [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ netty-common --- 18 [INFO] 19 [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-tools) @ netty-common --- 20 [INFO] 21 [INFO] --- maven-checkstyle-plugin:2.12.1:check (check-style) @ netty-common --- 22 [INFO] Starting audit... 23 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\AbstractReferenceCounted.java:0: File does not end with a newline. 24 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\AbstractReferenceCounted.java:0: invalid newline character (expected: CRLF) 25 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Attribute.java:0: File does not end with a newline. 26 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Attribute.java:0: invalid newline character (expected: CRLF) 27 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\AttributeKey.java:0: File does not end with a newline. 28 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\AttributeKey.java:0: invalid newline character (expected: CRLF) 29 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\AttributeMap.java:0: File does not end with a newline. 30 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\AttributeMap.java:0: invalid newline character (expected: CRLF) 31 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\CharsetUtil.java:0: File does not end with a newline. 32 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\CharsetUtil.java:0: invalid newline character (expected: CRLF) 33 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\collection\IntObjectHashMap.java:0: File does not end with a newline. 34 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\collection\IntObjectHashMap.java:0: invalid newline character (expected: CRLF) 35 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\collection\IntObjectMap.java:0: File does not end with a newline. 36 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\collection\IntObjectMap.java:0: invalid newline character (expected: CRLF) 37 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\collection\package-info.java:0: File does not end with a newline. 38 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\collection\package-info.java:0: invalid newline character (expected: CRLF) 39 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\AbstractEventExecutor.java:0: File does not end with a newline. 40 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\AbstractEventExecutor.java:0: invalid newline character (expected: CRLF) 41 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\AbstractEventExecutorGroup.java:0: File does not end with a newline. 42 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\AbstractEventExecutorGroup.java:0: invalid newline character (expected: CRLF) 43 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\AbstractFuture.java:0: File does not end with a newline. 44 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\AbstractFuture.java:0: invalid newline character (expected: CRLF) 45 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\AbstractScheduledEventExecutor.java:0: File does not end with a newline. 46 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\AbstractScheduledEventExecutor.java:0: invalid newline character (expected: CRLF) 47 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\BlockingOperationException.java:0: File does not end with a newline. 48 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\BlockingOperationException.java:0: invalid newline character (expected: CRLF) 49 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\CompleteFuture.java:0: File does not end with a newline. 50 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\CompleteFuture.java:0: invalid newline character (expected: CRLF) 51 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultEventExecutor.java:0: File does not end with a newline. 52 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultEventExecutor.java:0: invalid newline character (expected: CRLF) 53 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultEventExecutorGroup.java:0: File does not end with a newline. 54 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultEventExecutorGroup.java:0: invalid newline character (expected: CRLF) 55 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultFutureListeners.java:0: File does not end with a newline. 56 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultFutureListeners.java:0: invalid newline character (expected: CRLF) 57 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultProgressivePromise.java:0: File does not end with a newline. 58 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultProgressivePromise.java:0: invalid newline character (expected: CRLF) 59 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultPromise.java:0: File does not end with a newline. 60 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultPromise.java:0: invalid newline character (expected: CRLF) 61 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultThreadFactory.java:0: File does not end with a newline. 62 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\DefaultThreadFactory.java:0: invalid newline character (expected: CRLF) 63 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\EventExecutor.java:0: File does not end with a newline. 64 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\EventExecutor.java:0: invalid newline character (expected: CRLF) 65 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\EventExecutorGroup.java:0: File does not end with a newline. 66 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\EventExecutorGroup.java:0: invalid newline character (expected: CRLF) 67 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\FailedFuture.java:0: File does not end with a newline. 68 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\FailedFuture.java:0: invalid newline character (expected: CRLF) 69 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\FastThreadLocal.java:0: File does not end with a newline. 70 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\FastThreadLocal.java:0: invalid newline character (expected: CRLF) 71 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\FastThreadLocalThread.java:0: File does not end with a newline. 72 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\FastThreadLocalThread.java:0: invalid newline character (expected: CRLF) 73 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\Future.java:0: File does not end with a newline. 74 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\Future.java:0: invalid newline character (expected: CRLF) 75 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\FutureListener.java:0: File does not end with a newline. 76 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\FutureListener.java:0: invalid newline character (expected: CRLF) 77 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\GenericFutureListener.java:0: File does not end with a newline. 78 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\GenericFutureListener.java:0: invalid newline character (expected: CRLF) 79 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\GenericProgressiveFutureListener.java:0: File does not end with a newline. 80 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\GenericProgressiveFutureListener.java:0: invalid newline character (expected: CRLF) 81 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\GlobalEventExecutor.java:0: File does not end with a newline. 82 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\GlobalEventExecutor.java:0: invalid newline character (expected: CRLF) 83 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ImmediateEventExecutor.java:0: File does not end with a newline. 84 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ImmediateEventExecutor.java:0: invalid newline character (expected: CRLF) 85 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ImmediateExecutor.java:0: File does not end with a newline. 86 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ImmediateExecutor.java:0: invalid newline character (expected: CRLF) 87 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\MultithreadEventExecutorGroup.java:0: File does not end with a newline. 88 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\MultithreadEventExecutorGroup.java:0: invalid newline character (expected: CRLF) 89 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\OrderedEventExecutor.java:0: File does not end with a newline. 90 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\OrderedEventExecutor.java:0: invalid newline character (expected: CRLF) 91 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\package-info.java:0: File does not end with a newline. 92 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\package-info.java:0: invalid newline character (expected: CRLF) 93 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ProgressiveFuture.java:0: File does not end with a newline. 94 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ProgressiveFuture.java:0: invalid newline character (expected: CRLF) 95 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ProgressivePromise.java:0: File does not end with a newline. 96 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ProgressivePromise.java:0: invalid newline character (expected: CRLF) 97 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\Promise.java:0: File does not end with a newline. 98 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\Promise.java:0: invalid newline character (expected: CRLF) 99 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\PromiseAggregator.java:0: File does not end with a newline. 100 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\PromiseAggregator.java:0: invalid newline character (expected: CRLF) 101 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\PromiseCombiner.java:0: File does not end with a newline. 102 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\PromiseCombiner.java:0: invalid newline character (expected: CRLF) 103 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\PromiseNotifier.java:0: File does not end with a newline. 104 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\PromiseNotifier.java:0: invalid newline character (expected: CRLF) 105 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\PromiseTask.java:0: File does not end with a newline. 106 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\PromiseTask.java:0: invalid newline character (expected: CRLF) 107 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\RejectedExecutionHandler.java:0: File does not end with a newline. 108 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\RejectedExecutionHandler.java:0: invalid newline character (expected: CRLF) 109 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\RejectedExecutionHandlers.java:0: File does not end with a newline. 110 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\RejectedExecutionHandlers.java:0: invalid newline character (expected: CRLF) 111 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ScheduledFuture.java:0: File does not end with a newline. 112 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ScheduledFuture.java:0: invalid newline character (expected: CRLF) 113 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ScheduledFutureTask.java:0: File does not end with a newline. 114 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ScheduledFutureTask.java:0: invalid newline character (expected: CRLF) 115 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\SingleThreadEventExecutor.java:0: File does not end with a newline. 116 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\SingleThreadEventExecutor.java:0: invalid newline character (expected: CRLF) 117 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\SucceededFuture.java:0: File does not end with a newline. 118 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\SucceededFuture.java:0: invalid newline character (expected: CRLF) 119 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ThreadProperties.java:0: File does not end with a newline. 120 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\ThreadProperties.java:0: invalid newline character (expected: CRLF) 121 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\UnaryPromiseNotifier.java:0: File does not end with a newline. 122 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\UnaryPromiseNotifier.java:0: invalid newline character (expected: CRLF) 123 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\UnorderedThreadPoolEventExecutor.java:0: File does not end with a newline. 124 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\concurrent\UnorderedThreadPoolEventExecutor.java:0: invalid newline character (expected: CRLF) 125 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\DefaultAttributeMap.java:0: File does not end with a newline. 126 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\DefaultAttributeMap.java:0: invalid newline character (expected: CRLF) 127 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\DomainMappingBuilder.java:0: File does not end with a newline. 128 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\DomainMappingBuilder.java:0: invalid newline character (expected: CRLF) 129 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\DomainNameMapping.java:0: File does not end with a newline. 130 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\DomainNameMapping.java:0: invalid newline character (expected: CRLF) 131 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\DomainNameMappingBuilder.java:0: File does not end with a newline. 132 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\DomainNameMappingBuilder.java:0: invalid newline character (expected: CRLF) 133 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\HashedWheelTimer.java:0: File does not end with a newline. 134 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\HashedWheelTimer.java:0: invalid newline character (expected: CRLF) 135 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\IllegalReferenceCountException.java:0: File does not end with a newline. 136 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\IllegalReferenceCountException.java:0: invalid newline character (expected: CRLF) 137 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\AppendableCharSequence.java:0: File does not end with a newline. 138 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\AppendableCharSequence.java:0: invalid newline character (expected: CRLF) 139 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\Cleaner0.java:0: File does not end with a newline. 140 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\Cleaner0.java:0: invalid newline character (expected: CRLF) 141 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\ConcurrentSet.java:0: File does not end with a newline. 142 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\ConcurrentSet.java:0: invalid newline character (expected: CRLF) 143 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\EmptyArrays.java:0: File does not end with a newline. 144 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\EmptyArrays.java:0: invalid newline character (expected: CRLF) 145 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\IntegerHolder.java:0: File does not end with a newline. 146 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\IntegerHolder.java:0: invalid newline character (expected: CRLF) 147 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\InternalThreadLocalMap.java:0: File does not end with a newline. 148 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\InternalThreadLocalMap.java:0: invalid newline character (expected: CRLF) 149 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\JavassistTypeParameterMatcherGenerator.java:0: File does not end with a newline. 150 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\JavassistTypeParameterMatcherGenerator.java:0: invalid newline character (expected: CRLF) 151 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\AbstractInternalLogger.java:0: File does not end with a newline. 152 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\AbstractInternalLogger.java:0: invalid newline character (expected: CRLF) 153 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\CommonsLogger.java:0: File does not end with a newline. 154 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\CommonsLogger.java:0: invalid newline character (expected: CRLF) 155 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\CommonsLoggerFactory.java:0: File does not end with a newline. 156 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\CommonsLoggerFactory.java:0: invalid newline character (expected: CRLF) 157 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\FormattingTuple.java:0: File does not end with a newline. 158 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\FormattingTuple.java:0: invalid newline character (expected: CRLF) 159 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\InternalLogger.java:0: File does not end with a newline. 160 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\InternalLogger.java:0: invalid newline character (expected: CRLF) 161 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\InternalLoggerFactory.java:0: File does not end with a newline. 162 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\InternalLoggerFactory.java:0: invalid newline character (expected: CRLF) 163 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\InternalLogLevel.java:0: File does not end with a newline. 164 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\InternalLogLevel.java:0: invalid newline character (expected: CRLF) 165 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\JdkLogger.java:0: File does not end with a newline. 166 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\JdkLogger.java:0: invalid newline character (expected: CRLF) 167 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\JdkLoggerFactory.java:0: File does not end with a newline. 168 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\JdkLoggerFactory.java:0: invalid newline character (expected: CRLF) 169 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Log4J2Logger.java:0: File does not end with a newline. 170 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Log4J2Logger.java:0: invalid newline character (expected: CRLF) 171 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Log4J2LoggerFactory.java:0: File does not end with a newline. 172 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Log4J2LoggerFactory.java:0: invalid newline character (expected: CRLF) 173 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Log4JLogger.java:0: File does not end with a newline. 174 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Log4JLogger.java:0: invalid newline character (expected: CRLF) 175 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Log4JLoggerFactory.java:0: File does not end with a newline. 176 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Log4JLoggerFactory.java:0: invalid newline character (expected: CRLF) 177 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\MessageFormatter.java:0: File does not end with a newline. 178 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\MessageFormatter.java:0: invalid newline character (expected: CRLF) 179 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\package-info.java:0: File does not end with a newline. 180 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\package-info.java:0: invalid newline character (expected: CRLF) 181 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Slf4JLogger.java:0: File does not end with a newline. 182 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Slf4JLogger.java:0: invalid newline character (expected: CRLF) 183 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Slf4JLoggerFactory.java:0: File does not end with a newline. 184 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\logging\Slf4JLoggerFactory.java:0: invalid newline character (expected: CRLF) 185 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\LongCounter.java:0: File does not end with a newline. 186 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\LongCounter.java:0: invalid newline character (expected: CRLF) 187 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\MathUtil.java:0: File does not end with a newline. 188 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\MathUtil.java:0: invalid newline character (expected: CRLF) 189 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\NativeLibraryLoader.java:0: File does not end with a newline. 190 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\NativeLibraryLoader.java:0: invalid newline character (expected: CRLF) 191 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\NativeLibraryUtil.java:0: File does not end with a newline. 192 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\NativeLibraryUtil.java:0: invalid newline character (expected: CRLF) 193 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\NoOpTypeParameterMatcher.java:0: File does not end with a newline. 194 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\NoOpTypeParameterMatcher.java:0: invalid newline character (expected: CRLF) 195 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\ObjectUtil.java:0: File does not end with a newline. 196 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\ObjectUtil.java:0: invalid newline character (expected: CRLF) 197 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\OutOfDirectMemoryError.java:0: File does not end with a newline. 198 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\OutOfDirectMemoryError.java:0: invalid newline character (expected: CRLF) 199 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\package-info.java:0: File does not end with a newline. 200 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\package-info.java:0: invalid newline character (expected: CRLF) 201 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\PendingWrite.java:0: File does not end with a newline. 202 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\PendingWrite.java:0: invalid newline character (expected: CRLF) 203 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\PlatformDependent.java:0: File does not end with a newline. 204 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\PlatformDependent.java:0: invalid newline character (expected: CRLF) 205 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\PlatformDependent0.java:0: File does not end with a newline. 206 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\PlatformDependent0.java:0: invalid newline character (expected: CRLF) 207 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\PromiseNotificationUtil.java:0: File does not end with a newline. 208 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\PromiseNotificationUtil.java:0: invalid newline character (expected: CRLF) 209 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\ReadOnlyIterator.java:0: File does not end with a newline. 210 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\ReadOnlyIterator.java:0: invalid newline character (expected: CRLF) 211 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\RecyclableArrayList.java:0: File does not end with a newline. 212 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\RecyclableArrayList.java:0: invalid newline character (expected: CRLF) 213 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\StringUtil.java:0: File does not end with a newline. 214 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\StringUtil.java:0: invalid newline character (expected: CRLF) 215 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\SystemPropertyUtil.java:0: File does not end with a newline. 216 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\SystemPropertyUtil.java:0: invalid newline character (expected: CRLF) 217 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\ThreadLocalRandom.java:0: File does not end with a newline. 218 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\ThreadLocalRandom.java:0: invalid newline character (expected: CRLF) 219 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\ThrowableUtil.java:0: File does not end with a newline. 220 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\ThrowableUtil.java:0: invalid newline character (expected: CRLF) 221 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\TypeParameterMatcher.java:0: File does not end with a newline. 222 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\TypeParameterMatcher.java:0: invalid newline character (expected: CRLF) 223 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\UnpaddedInternalThreadLocalMap.java:0: File does not end with a newline. 224 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\UnpaddedInternalThreadLocalMap.java:0: invalid newline character (expected: CRLF) 225 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\UnsafeAtomicIntegerFieldUpdater.java:0: File does not end with a newline. 226 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\UnsafeAtomicIntegerFieldUpdater.java:0: invalid newline character (expected: CRLF) 227 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\UnsafeAtomicLongFieldUpdater.java:0: File does not end with a newline. 228 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\UnsafeAtomicLongFieldUpdater.java:0: invalid newline character (expected: CRLF) 229 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\UnsafeAtomicReferenceFieldUpdater.java:0: File does not end with a newline. 230 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\UnsafeAtomicReferenceFieldUpdater.java:0: invalid newline character (expected: CRLF) 231 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\UnstableApi.java:0: File does not end with a newline. 232 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\internal\UnstableApi.java:0: invalid newline character (expected: CRLF) 233 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\IntSupplier.java:0: File does not end with a newline. 234 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\IntSupplier.java:0: invalid newline character (expected: CRLF) 235 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Mapping.java:0: File does not end with a newline. 236 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Mapping.java:0: invalid newline character (expected: CRLF) 237 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\NetUtil.java:0: File does not end with a newline. 238 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\NetUtil.java:0: invalid newline character (expected: CRLF) 239 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\package-info.java:0: File does not end with a newline. 240 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\package-info.java:0: invalid newline character (expected: CRLF) 241 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Recycler.java:0: File does not end with a newline. 242 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Recycler.java:0: invalid newline character (expected: CRLF) 243 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ReferenceCounted.java:0: File does not end with a newline. 244 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ReferenceCounted.java:0: invalid newline character (expected: CRLF) 245 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ReferenceCountUtil.java:0: File does not end with a newline. 246 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ReferenceCountUtil.java:0: invalid newline character (expected: CRLF) 247 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeak.java:0: File does not end with a newline. 248 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeak.java:0: invalid newline character (expected: CRLF) 249 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeakDetector.java:0: File does not end with a newline. 250 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeakDetector.java:0: invalid newline character (expected: CRLF) 251 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeakDetectorFactory.java:0: File does not end with a newline. 252 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeakDetectorFactory.java:0: invalid newline character (expected: CRLF) 253 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeakException.java:0: File does not end with a newline. 254 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeakException.java:0: invalid newline character (expected: CRLF) 255 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeakHint.java:0: File does not end with a newline. 256 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeakHint.java:0: invalid newline character (expected: CRLF) 257 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeakTracker.java:0: File does not end with a newline. 258 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ResourceLeakTracker.java:0: invalid newline character (expected: CRLF) 259 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Signal.java:0: File does not end with a newline. 260 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Signal.java:0: invalid newline character (expected: CRLF) 261 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ThreadDeathWatcher.java:0: File does not end with a newline. 262 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\ThreadDeathWatcher.java:0: invalid newline character (expected: CRLF) 263 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Timeout.java:0: File does not end with a newline. 264 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Timeout.java:0: invalid newline character (expected: CRLF) 265 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Timer.java:0: File does not end with a newline. 266 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\Timer.java:0: invalid newline character (expected: CRLF) 267 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\TimerTask.java:0: File does not end with a newline. 268 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\TimerTask.java:0: invalid newline character (expected: CRLF) 269 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\UniqueName.java:0: File does not end with a newline. 270 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\main\java\io\netty\util\UniqueName.java:0: invalid newline character (expected: CRLF) 271 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\AbstractReferenceCountedTest.java:0: File does not end with a newline. 272 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\AbstractReferenceCountedTest.java:0: invalid newline character (expected: CRLF) 273 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\AttributeKeyTest.java:0: File does not end with a newline. 274 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\AttributeKeyTest.java:0: invalid newline character (expected: CRLF) 275 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\collection\IntObjectHashMapTest.java:0: File does not end with a newline. 276 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\collection\IntObjectHashMapTest.java:0: invalid newline character (expected: CRLF) 277 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\DefaultPromiseTest.java:0: File does not end with a newline. 278 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\DefaultPromiseTest.java:0: invalid newline character (expected: CRLF) 279 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\DefaultThreadFactoryTest.java:0: File does not end with a newline. 280 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\DefaultThreadFactoryTest.java:0: invalid newline character (expected: CRLF) 281 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\FastThreadLocalTest.java:0: File does not end with a newline. 282 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\FastThreadLocalTest.java:0: invalid newline character (expected: CRLF) 283 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\GlobalEventExecutorTest.java:0: File does not end with a newline. 284 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\GlobalEventExecutorTest.java:0: invalid newline character (expected: CRLF) 285 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\PromiseAggregatorTest.java:0: File does not end with a newline. 286 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\PromiseAggregatorTest.java:0: invalid newline character (expected: CRLF) 287 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\PromiseCombinerTest.java:0: File does not end with a newline. 288 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\PromiseCombinerTest.java:0: invalid newline character (expected: CRLF) 289 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\PromiseNotifierTest.java:0: File does not end with a newline. 290 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\PromiseNotifierTest.java:0: invalid newline character (expected: CRLF) 291 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\SingleThreadEventExecutorTest.java:0: File does not end with a newline. 292 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\concurrent\SingleThreadEventExecutorTest.java:0: invalid newline character (expected: CRLF) 293 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\DefaultAttributeMapTest.java:0: File does not end with a newline. 294 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\DefaultAttributeMapTest.java:0: invalid newline character (expected: CRLF) 295 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\DomainNameMappingTest.java:0: File does not end with a newline. 296 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\DomainNameMappingTest.java:0: invalid newline character (expected: CRLF) 297 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\HashedWheelTimerTest.java:0: File does not end with a newline. 298 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\HashedWheelTimerTest.java:0: invalid newline character (expected: CRLF) 299 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\AppendableCharSequenceTest.java:0: File does not end with a newline. 300 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\AppendableCharSequenceTest.java:0: invalid newline character (expected: CRLF) 301 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\CommonsLoggerFactoryTest.java:0: File does not end with a newline. 302 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\CommonsLoggerFactoryTest.java:0: invalid newline character (expected: CRLF) 303 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\CommonsLoggerTest.java:0: File does not end with a newline. 304 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\CommonsLoggerTest.java:0: invalid newline character (expected: CRLF) 305 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\InternalLoggerFactoryTest.java:0: File does not end with a newline. 306 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\InternalLoggerFactoryTest.java:0: invalid newline character (expected: CRLF) 307 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\JdkLoggerFactoryTest.java:0: File does not end with a newline. 308 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\JdkLoggerFactoryTest.java:0: invalid newline character (expected: CRLF) 309 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\Log4J2LoggerFactoryTest.java:0: File does not end with a newline. 310 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\Log4J2LoggerFactoryTest.java:0: invalid newline character (expected: CRLF) 311 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\Log4J2LoggerTest.java:0: File does not end with a newline. 312 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\Log4J2LoggerTest.java:0: invalid newline character (expected: CRLF) 313 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\Log4JLoggerFactoryTest.java:0: File does not end with a newline. 314 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\Log4JLoggerFactoryTest.java:0: invalid newline character (expected: CRLF) 315 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\Slf4JLoggerFactoryTest.java:0: File does not end with a newline. 316 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\Slf4JLoggerFactoryTest.java:0: invalid newline character (expected: CRLF) 317 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\Slf4JLoggerTest.java:0: File does not end with a newline. 318 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\logging\Slf4JLoggerTest.java:0: invalid newline character (expected: CRLF) 319 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\PlatformDependentTest.java:0: File does not end with a newline. 320 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\PlatformDependentTest.java:0: invalid newline character (expected: CRLF) 321 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\StringUtilTest.java:0: File does not end with a newline. 322 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\StringUtilTest.java:0: invalid newline character (expected: CRLF) 323 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\ThreadLocalRandomTest.java:0: File does not end with a newline. 324 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\ThreadLocalRandomTest.java:0: invalid newline character (expected: CRLF) 325 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\TypeParameterMatcherTest.java:0: File does not end with a newline. 326 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\internal\TypeParameterMatcherTest.java:0: invalid newline character (expected: CRLF) 327 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\NetUtilTest.java:0: File does not end with a newline. 328 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\NetUtilTest.java:0: invalid newline character (expected: CRLF) 329 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\RecyclerTest.java:0: File does not end with a newline. 330 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\RecyclerTest.java:0: invalid newline character (expected: CRLF) 331 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\ResourceLeakDetectorTest.java:0: File does not end with a newline. 332 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\ResourceLeakDetectorTest.java:0: invalid newline character (expected: CRLF) 333 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\ThreadDeathWatcherTest.java:0: File does not end with a newline. 334 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\ThreadDeathWatcherTest.java:0: invalid newline character (expected: CRLF) 335 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\UniqueNameTest.java:0: File does not end with a newline. 336 D:\Knowledge\SOURCE\netty\netty-4.0\common\src\test\java\io\netty\util\UniqueNameTest.java:0: invalid newline character (expected: CRLF) 337 Audit done. 338 339 [INFO] ------------------------------------------------------------------------ 340 [INFO] BUILD FAILURE 341 [INFO] ------------------------------------------------------------------------ 342 [INFO] Total time: 5.214 s 343 [INFO] Finished at: 2016-12-15T14:29:52+08:00 344 [INFO] Final Memory: 29M/617M 345 [INFO] ------------------------------------------------------------------------ 346 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.12.1:check (check-style) on project netty-common: Failed during checkstyle execution: There are 314 checkstyle errors. -> [Help 1] 347 [ERROR] 348 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 349 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 350 [ERROR] 351 [ERROR] For more information about the errors and possible solutions, please read the following articles: 352 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 353 354 Process finished with exit code 1
后来在各种搜索中找解决方案,百度中很多地方的帖子都说是maven的plugin配置的问题,后来我依着提示修改,然并卵。 最后在stackoverflow上找到一个帖子的建议链接,链接如下:https://help.github.com/articles/dealing-with-line-endings/#platform-windows
里面说的很清楚:
When you view changes in a file, Git handles line endings in its own way. Since you're collaborating on projects with Git and GitHub, Git might produce unexpected results if, for example, you're working on a Windows machine, and your collaborator has made a change in OS X.
不同的人在不同系统上提交的代码,对文件行的处理方式不一样,比如换行,windows下是/r/n,但是linux下换行是/n。
解决方案,我采用的是他的第一个解决方案:
Global settings for line endings
The
git config core.autocrlf
command is used to change how Git handles line endings. It takes a single argument.On Windows, you simply pass
true
to the configuration. For example:git config --global core.autocrlf true # Configure Git on Windows to properly handle line endings
执行后,在window下,CMD里面执行git clone取代码4.1的代码。习惯了linux下的操作,用git@github.com:netty/netty.git,结果出错,因为我windows上没有ssh的key。。。改用https的地址clone就可以了,如下图:
代码获取了,此时的代码,应该不会再有line endings的错误了吧,继续在IJ里面编译试试:
这次编译,终于可以了,没有什么问题。
这次git的这个问题,让我还折腾了不少时间,因为Intellij报的错误的确是说checkStyle的问题,找plugin的问题,没有想到是github上的代码因为git处理core.autocrlf的策略问题,默认git中的配置,这个参数是false,改成true后,git取源码再编译,就ok了。
上面的处理,是编译其中一个模块,netty-common,现在,我们要编译整个工程,就是netty的根工程,让所有的模块都编译通过。
这里,说说Intellij中如何用maven编译代码,如我上面的截图中出现右边的Maven projects这个框,若不是很熟悉Intellij的伙伴,比如老是用Eclipse的人,可能真不知道如何打开这个窗口。其实很简单:
在菜单栏中: view->Tool windows->Maven Projects
另外,在这Maven Projects的操作面板上,有几个小button,我喜欢在Install或者Package的时候,不要test这个lifecycle,点击一下skip test即可。
是不是test上有一个删除线了。。。。
下面看看整个工程的编译安装,即mvn install的操作。
一切都ok了,install的操作完美收官!
若是想在windows下通过Intellij IDEA对netty的源码进行编译的话,本帖子可以给你提供一点借鉴,欢迎转帖。转帖请指明出处。