-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
69 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
core/src/main/java/de/jplag/reporting/jsonfactory/serializer/LanguageSerializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package de.jplag.reporting.jsonfactory.serializer; | ||
|
||
import java.io.IOException; | ||
|
||
import de.jplag.Language; | ||
|
||
import com.fasterxml.jackson.core.JsonGenerator; | ||
import com.fasterxml.jackson.databind.SerializerProvider; | ||
import com.fasterxml.jackson.databind.ser.std.StdSerializer; | ||
|
||
public class LanguageSerializer extends StdSerializer<Language> { | ||
|
||
/** | ||
* Constructor used by the fasterxml.jackson | ||
*/ | ||
public LanguageSerializer() { | ||
this(null); | ||
} | ||
|
||
public LanguageSerializer(Class<Language> t) { | ||
super(t); | ||
} | ||
|
||
@Override | ||
public void serialize(Language value, JsonGenerator gen, SerializerProvider provider) throws IOException { | ||
gen.writeString(value.getName()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
core/src/main/java/de/jplag/reporting/reportobject/model/ClusterOptionsReport.java
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
core/src/main/java/de/jplag/reporting/reportobject/model/MergingOptionsReport.java
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
core/src/main/java/de/jplag/reporting/reportobject/model/OptionsReport.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters