Skip to content

Commit

Permalink
Merge branch '2.16'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Oct 23, 2023
2 parents 284123d + 1449cfc commit 93d405e
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 93d405e

Please sign in to comment.