疯狂Java程序员的基本修养 (1)

  • 第283页
    勘误 // 如果front>=rear,那么有效元素为front->capacity之间和0->front之间的元素 这个注释错了,应该是 // 如果front>=rear,那么有效元素为front->capacity之间和0->rear之间的元素

Scala in Action (1)

  • 第183页
    6.2.3 Setting up the weKanban project with SBT project/build.properties ``` sbt.properties=0.12.0 # 根据我的环境改为 0.13.2 ``` project/plugins.sbt ``` libraryDependencies <+= sbtVersion.apply {...

Java 8 in Action (1)

  • 1.1.4
    In fact, using synchronized across multiple processing cores is far more expensive than we often expect, because synchronization forces code to execute sequentially, which works against the goal of...

Pro Java 7 NIO.2 (5)

  • 第216页
    In summary, I/O processing that is expected to take a large amount of time can be optimized by using asynchronous I/O. For relatively fast I/O opertions, synchronous I/O would be better because the...
  • 第225页
    发现在测试AsynchronousFileChannel的时候,用Groovy运行这一节的代码的结果完全跟书中描述的不一样。换用jdk7编译运行则跟书中结果一样。 Groovy对AsynchronousFileChannel的支持有BUG?
  • 第165页
    FileChannel and Non-direct Buffer vs. FileChannel and Direct Buffer it seems that for buffers smaller than 256KB, the non-direct buffer is much faster, while for buffers larger than 256KB, the dire...
  • 第154页
    Locking a Channel's File 这一节的例子有问题,我使用Groovy得不到书中描述的效果,还用线程实现也不能。 最后从网上把随书源代码下载下来,编译java文件,运行。还是不能出现书中描述的 You should find that t...
  • 第96页
    勘误: if ((ext.equalsIgnoreCase("txt")) || (ext.equalsIgnoreCase("xml") || ext.equalsIgnoreCase("html")) || ext.equalsIgnoreCase("htm") || ext.equalsIgnoreCase("xhtml") || ext.equalsIgnoreCase("rt...

Programming Groovy 2 (2)

  • 第88页
    In the previous example, we set the `delegate` property on a closure. This has side effects, especially if the closure can be used in other functions or in other threads. If we're absolutely sure t...
  • 第88页
    勘误 def clone = closure.clone() clone.delegate = handler clone() we can perform those three steps in one shot using a special with() method: handler.with closure 原文这么描述不太严谨,这句话字面上...