Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Fix Serializable implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ayltai committed Jul 8, 2020
1 parent a6bee4b commit 7fd6722
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group 'com.github.ayltai'
version '0.2.6'
version '0.2.7'

sourceCompatibility = 8
targetCompatibility = 8
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/com/github/ayltai/gradle/plugin/Variables.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.github.ayltai.gradle.plugin;

import java.io.File;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnull;
Expand All @@ -23,4 +26,12 @@ public <T> void var(@Nonnull final String name, @Nullable final T value) {
public void file(@Nonnull final File file) {
this.files.add(file);
}

private static void writeObject(@Nonnull final ObjectOutputStream outputStream) throws IOException {
outputStream.defaultWriteObject();
}

private static void readObject(@Nonnull final ObjectInputStream inputStream) throws IOException, ClassNotFoundException {
inputStream.defaultReadObject();
}
}

0 comments on commit 7fd6722

Please sign in to comment.