1
0
mirror of https://github.com/sethm/symon.git synced 2024-06-07 03:29:28 +00:00

POM cleanup

This commit is contained in:
Seth Morabito 2018-02-04 11:49:26 -08:00
parent 71905fdb19
commit 73c474d606
2 changed files with 6 additions and 25 deletions

27
pom.xml
View File

@ -15,41 +15,22 @@
UTF-8 UTF-8
</project.reporting.outputEncoding> </project.reporting.outputEncoding>
</properties> </properties>
<repositories>
<repository>
<id>jline</id>
<name>JLine Project Repository</name>
<url>http://jline.sourceforge.net/m2repo</url>
</repository>
<!-- Loomcom's Maven2 repository for JTerminal -->
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</releases>
<id>com.loomcom</id>
<name>Loom Communications Maven2 Repository</name>
<url>http://www.loomcom.com/maven2</url>
<layout>default</layout>
</repository>
</repositories>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>ch.qos.logback</groupId> <groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId> <artifactId>logback-classic</artifactId>
<version>1.1.3</version> <version>1.2.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.11</version> <version>4.12</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.mockito</groupId> <groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId> <artifactId>mockito-all</artifactId>
<version>1.9.5</version> <version>1.10.19</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
@ -83,7 +64,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version> <version>3.7.0</version>
<configuration> <configuration>
<compilerArgument>-Xlint:unchecked</compilerArgument> <compilerArgument>-Xlint:unchecked</compilerArgument>
<source>1.7</source> <source>1.7</source>

View File

@ -51,7 +51,7 @@ public class Console extends JTerminal implements KeyListener, MouseListener {
private static final boolean SWAP_CR_AND_LF = true; private static final boolean SWAP_CR_AND_LF = true;
// If true, send CRLF (0x0d 0x0a) whenever CR is typed // If true, send CRLF (0x0d 0x0a) whenever CR is typed
private boolean sendCrForLf = false; private boolean sendCrForLf;
private FifoRingBuffer<Character> typeAheadBuffer; private FifoRingBuffer<Character> typeAheadBuffer;
public Console(int columns, int rows, Font font, boolean sendCrForLf) { public Console(int columns, int rows, Font font, boolean sendCrForLf) {
@ -107,7 +107,7 @@ public class Console extends JTerminal implements KeyListener, MouseListener {
} }
} }
if (sendCrForLf && keyTyped == 0x0d) { if (sendCrForLf && (keyTyped == 0x0d)) {
typeAheadBuffer.push((char) 0x0d); typeAheadBuffer.push((char) 0x0d);
typeAheadBuffer.push((char) 0x0a); typeAheadBuffer.push((char) 0x0a);
} else { } else {