Skip to content

Commit 811333e

Browse files
committed
Deconstructorize serializer
1 parent 69f0c79 commit 811333e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

API/src/main/java/me/innectic/permissify/api/profile/ProfileSerializer.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@
99
* @author Innectic
1010
* @since 8/26/2017
1111
*/
12-
@AllArgsConstructor
1312
public class ProfileSerializer {
14-
private final String profileName;
1513

1614
/**
1715
* Serialize a permissify profile into a permissify profile file
1816
*
1917
* @param profile the profile to serialize
2018
* @param baseDirectory the base of the directory to store the profiles in
19+
* @param profileName the name of the profile
2120
* @return if the profile was successfully stored
2221
*/
23-
public boolean serialize(PermissifyProfile profile, String baseDirectory) {
22+
public boolean serialize(PermissifyProfile profile, String baseDirectory, String profileName) {
2423
try {
2524
FileOutputStream outputStream = new FileOutputStream(baseDirectory + "/profiles/" + profileName + ".permissify");
2625
ObjectOutputStream out = new ObjectOutputStream(outputStream);

0 commit comments

Comments
 (0)