Commit ad3eed22 authored by saviola's avatar saviola
Browse files

Update dependency versions, formatting, bugfix

- fix a bug where a missing login event would crash the output generation due
  to an empty string being used as the username. Now a space is used.
parent b2ac789b
Copyright (c) 2013-2014, Johannes Rückert
Copyright (c) 2013-2015, Johannes Rückert
All rights reserved.
Redistribution and use in source and binary forms, with or without
......
......@@ -13,8 +13,8 @@
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-base</artifactId>
<version>r09</version>
<artifactId>guava</artifactId>
<version>16.0.1</version>
</dependency>
<dependency>
<groupId>com.brsanthu</groupId>
......
......@@ -17,7 +17,7 @@ public class Irpglp
{
/**
* Main method of the IdleRPG log parser.
*
*
* The application will first be initialized, then the log file will be
* processed before the output will be written.
*/
......@@ -56,6 +56,7 @@ public class Irpglp
// Write the different parts of the output
// TODO extract paths to configuration
// TODO create directory
output.write(new File("/tmp/idle/table.txt"));
output.writeColumnDescriptions(new File("/tmp/idle/table_description.txt"));
......@@ -65,7 +66,6 @@ public class Irpglp
new TextFileOutputCompiler(new File("/tmp/idle/output.txt"));
// Compile the output and save it to the above file
outputCompiler
.compileAndSave();
outputCompiler.compileAndSave();
}
}
......@@ -4,10 +4,10 @@ import de.saviola.irpglp.property.CounterStoreProperty;
/**
* {@link CounterStoreProperty} for meta information.
*
*
* Currently, only the username from which the hero has logged in most
* recently is stored.
*
*
* TODO naming? UsernameProperty?
*/
public class MetaProperty extends CounterStoreProperty<MetaProperty>
......@@ -28,7 +28,7 @@ public class MetaProperty extends CounterStoreProperty<MetaProperty>
@Override
public String[] getValues()
{
String username = this.getUsername() != null ? this.getUsername() : "";
String username = this.getUsername() != null ? this.getUsername() : " ";
username = username.length() <= 15 ? username
: username.substring(0, 14) + "…";
......@@ -41,7 +41,7 @@ public class MetaProperty extends CounterStoreProperty<MetaProperty>
/**
* Sets the username.
*
*
* TODO check the line?
*/
public synchronized void setUsername(final String username,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment