Updated version

master
nathan 2016-04-03 21:03:24 +02:00
parent 45da86b622
commit c782a2ff8b
4 changed files with 34 additions and 5 deletions

View File

@ -23,6 +23,12 @@
Copyright Hiram Chirino
- JLine2 - BSD 2-clause License
https://github.com/jline/jline2
Copyright 2002-2006, Marc Prud'hommeaux <mwp1@cornell.edu>
Copyright 2002-2012, the original author or authors
- SLF4J - MIT License
http://www.slf4j.org
Copyright 2004-2008, QOS.ch

22
LICENSE.BSD2 Normal file
View File

@ -0,0 +1,22 @@
BSD License
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <ORGANIZATION> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -37,7 +37,7 @@ This project is **kept in sync** with the utilities library, so "jar hell" is no
<dependency>
<groupId>com.dorkbox</groupId>
<artifactId>InputConsole</artifactId>
<version>2.6</version>
<version>2.7</version>
</dependency>
```

View File

@ -19,6 +19,7 @@ import dorkbox.inputConsole.posix.UnixTerminal;
import dorkbox.inputConsole.unsupported.UnsupportedTerminal;
import dorkbox.inputConsole.windows.WindowsTerminal;
import dorkbox.objectPool.ObjectPool;
import dorkbox.util.FastThreadLocal;
import dorkbox.util.OS;
import dorkbox.util.bytes.ByteBuffer2;
import dorkbox.util.bytes.ByteBuffer2Poolable;
@ -92,7 +93,7 @@ class InputConsole {
*/
public static
String getVersion() {
return "2.6";
return "2.7";
}
/**
@ -156,11 +157,11 @@ class InputConsole {
private final ObjectPool<ByteBuffer2> pool;
private ThreadLocal<ByteBuffer2> readBuff = new ThreadLocal<ByteBuffer2>();
private FastThreadLocal<ByteBuffer2> readBuff = new FastThreadLocal<ByteBuffer2>();
private List<ByteBuffer2> readBuffers = new CopyOnWriteArrayList<ByteBuffer2>();
private ThreadLocal<Integer> threadBufferCounter = new ThreadLocal<Integer>();
private FastThreadLocal<Integer> threadBufferCounter = new FastThreadLocal<Integer>();
private ThreadLocal<ByteBuffer2> readLineBuff = new ThreadLocal<ByteBuffer2>();
private FastThreadLocal<ByteBuffer2> readLineBuff = new FastThreadLocal<ByteBuffer2>();
private List<ByteBuffer2> readLineBuffers = new CopyOnWriteArrayList<ByteBuffer2>();
private final Terminal terminal;