Skip to content

Commit

Permalink
Rip and tear - remove 1.2.x API
Browse files Browse the repository at this point in the history
  • Loading branch information
falkreon committed Feb 24, 2023
1 parent 1d937a1 commit f218529
Show file tree
Hide file tree
Showing 26 changed files with 1,061 additions and 4,355 deletions.
391 changes: 0 additions & 391 deletions src/main/java/blue/endless/jankson/api/Jankson.java

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions src/main/java/blue/endless/jankson/api/Marshaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@
package blue.endless.jankson.api;

import java.lang.reflect.Type;

import blue.endless.jankson.api.element.JsonElement;
import blue.endless.jankson.api.io.JsonIOException;

public interface Marshaller {
/** Turns a java object into its json intermediate representation. */
JsonElement serialize(Object obj);
//JsonElement serialize(Object obj);

/**
* Unpacks the provided JsonElement into a new object of type {@code clazz}, making a best
Expand All @@ -46,7 +44,7 @@ public interface Marshaller {
* @param <E> The type of the object to create and deserialize
* @return A new object of the provided class that represents the data in the json provided.
*/
<E> E marshall(Class<E> clazz, JsonElement elem);
//<E> E marshall(Class<E> clazz, JsonElement elem);

/**
* Unpacks the provided JsonElement into an object of the provided Type, and force-casts it to
Expand All @@ -56,7 +54,7 @@ public interface Marshaller {
* @param <E> The type to force-cast to at the end
* @return A new object of the provided Type that represents the data in the json provided.
*/
<E> E marshall(Type type, JsonElement elem);
//<E> E marshall(Type type, JsonElement elem);

/**
* Unpacks the provided JsonElement in fail-fast mode. A detailed exception is thrown for any
Expand All @@ -67,5 +65,5 @@ public interface Marshaller {
* @return A new object of the provided class that represents the data in the json provided.
* @throws JsonIOException if any problems are encountered unpacking the data.
*/
<E> E marshallCarefully(Class<E> clazz, JsonElement elem) throws JsonIOException;
//<E> E marshallCarefully(Class<E> clazz, JsonElement elem) throws JsonIOException;
}
Loading

0 comments on commit f218529

Please sign in to comment.