Fix TimeKeeper tostring
Remove parallelStream from Tables because there is only one database connection.
This commit is contained in:
Rsl1122 2017-08-03 09:57:54 +03:00
parent 6ddd7a212c
commit c94bcafc41
8 changed files with 13 additions and 13 deletions

View File

@ -1,14 +1,14 @@
<component name="libraryTable">
<library name="Maven: com.djrapitops:PlanPluginBridge:3.6.0">
<CLASSES>
<root url="jar://$PROJECT_DIR$/../PlanPluginBridge/PlanPluginBridge-3.6.0.jar!/" />
<root url="file://$PROJECT_DIR$/../PlanPluginBridge" />
<root url="file://$PROJECT_DIR$/../PlanPluginBridge" />
<root url="jar://$MAVEN_REPOSITORY$/com/djrapitops/PlanPluginBridge/3.6.0/PlanPluginBridge-3.6.0.jar!/" />
</CLASSES>
<JAVADOC />
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/djrapitops/PlanPluginBridge/3.6.0/PlanPluginBridge-3.6.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="file://$PROJECT_DIR$/../PlanPluginBridge/src/main/java" />
<root url="jar://$MAVEN_REPOSITORY$/com/djrapitops/PlanPluginBridge/3.6.0/PlanPluginBridge-3.6.0-sources.jar!/" />
</SOURCES>
<jarDirectory url="file://$PROJECT_DIR$/../PlanPluginBridge" recursive="false" />
</library>
</component>

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.djrapitops</groupId>
<artifactId>Plan</artifactId>
<version>3.6.0</version>
<version>3.6.1</version>
<packaging>jar</packaging>
<repositories>
<repository>

View File

@ -155,7 +155,7 @@ public abstract class TimeKeeper {
@Override
public String toString() {
return "TimeKeeper{" +
return getClass().getSimpleName()+"{" +
"times=" + times +
", state='" + state + '\'' +
", lastStateChange=" + lastStateChange +

View File

@ -220,7 +220,7 @@ public class GMTimesTable extends Table {
List<List<Container<GMTimes>>> batches = DBUtils.splitIntoBatchesWithID(gmTimes);
batches.parallelStream().forEach(batch -> {
batches.stream().forEach(batch -> {
try {
saveGMTimesBatch(batch);
} catch (SQLException e) {
@ -298,7 +298,7 @@ public class GMTimesTable extends Table {
List<List<Container<GMTimes>>> batches = DBUtils.splitIntoBatchesWithID(gmTimes);
batches.parallelStream().forEach(batch -> {
batches.stream().forEach(batch -> {
try {
addNewGMTimesBatch(batch);
} catch (SQLException e) {

View File

@ -218,7 +218,7 @@ public class SessionsTable extends Table {
List<List<Container<SessionData>>> batches = splitIntoBatches(sessions);
batches.parallelStream().forEach(batch -> {
batches.stream().forEach(batch -> {
try {
saveSessionBatch(batch);
} catch (SQLException e) {

View File

@ -119,7 +119,7 @@ public class TPSTable extends Table {
*/
public void saveTPSData(List<TPS> data) throws SQLException {
List<List<TPS>> batches = DBUtils.splitIntoBatches(data);
batches.parallelStream()
batches.stream()
.forEach(batch -> {
try {
saveTPSBatch(batch);

View File

@ -683,7 +683,7 @@ public class UsersTable extends Table {
List<List<UserData>> batches = DBUtils.splitIntoBatches(newUserdata);
batches.parallelStream()
batches.stream()
.forEach(batch -> {
try {
insertNewUserData(batch);

View File

@ -1,7 +1,7 @@
name: Plan
author: Rsl1122
main: main.java.com.djrapitops.plan.Plan
version: 3.6.0
version: 3.6.1
softdepend:
- OnTime
- EssentialsX