Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Switch Xml annotation to Jackson annotation to experimentally support…
Browse files Browse the repository at this point in the history
… JDK 9 / 10
  • Loading branch information
sfuhrm committed Jul 22, 2018
1 parent ba0d628 commit 432fc57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ matrix:
include:
- jdk: openjdk8
- jdk: oraclejdk8
# - jdk: oraclejdk9
# - jdk: oraclejdk10
# - jdk: openjdk10
- jdk: oraclejdk9
- jdk: oraclejdk10
- jdk: openjdk10
install: mvn install -Dgpg.skip
cache:
directories:
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/com/oneandone/sshconfig/bind/Host.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package com.oneandone.sshconfig.bind;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.Date;
import java.util.Objects;
Expand All @@ -23,8 +24,6 @@
import javax.validation.constraints.PastOrPresent;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;

import com.oneandone.sshconfig.validation.IpAddress;
import lombok.EqualsAndHashCode;
Expand All @@ -36,7 +35,7 @@
* @author Stephan Fuhrmann
*/
@EqualsAndHashCode(of = "fqdn")
@XmlAccessorType(XmlAccessType.FIELD)
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
@JsonIgnoreProperties(ignoreUnknown = true)
public final class Host {

Expand Down

0 comments on commit 432fc57

Please sign in to comment.