Skip to content

Commit

Permalink
Simplify test for #30 since Java 8 baseline for Jackson 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Oct 23, 2023
1 parent a4d1c96 commit 1449cfc
Showing 1 changed file with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
// for [modules-base#30]
public class DefaultMethodsTest extends AfterburnerTestBase
{
// NOTE: can only be enabled for Jackson 3.x
/*
// With Java 8 can use this:
public interface Typed {
default String getType() {
return "bogus";
Expand All @@ -25,22 +24,6 @@ public void internalSet(String value) {
x = value;
}
}
*/

// for Jackson 2.x:
public interface Typed {
public String getType();
public void setType(String t);
}

static class Model implements Typed {
String x;

@Override
public String getType() { return "bogus"; }
@Override
public void setType(String t) { x = t; }
}

/*
/**********************************************************************
Expand Down

0 comments on commit 1449cfc

Please sign in to comment.