Skip to content

Commit

Permalink
Merge pull request #109 from artado/master
Browse files Browse the repository at this point in the history
Update to fix verifyGoogleJavaFormat exception issue #106
  • Loading branch information
TVolden authored Feb 28, 2020
2 parents 625fab6 + 741420c commit 461ece7
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package eu.chargetime.ocpp;

import javax.xml.bind.annotation.adapters.XmlAdapter;
import java.time.ZonedDateTime;
import javax.xml.bind.annotation.adapters.XmlAdapter;

/*
* ChargeTime.eu - Java-OCA-OCPP
Expand Down Expand Up @@ -31,13 +31,13 @@

public class ZonedDateTimeAdapter extends XmlAdapter<String, ZonedDateTime> {

@Override
public ZonedDateTime unmarshal(String string) throws Exception {
return ZonedDateTime.parse(string);
}
@Override
public ZonedDateTime unmarshal(String string) throws Exception {
return ZonedDateTime.parse(string);
}

@Override
public String marshal(ZonedDateTime zonedDateTime) throws Exception {
return zonedDateTime.toString();
}
@Override
public String marshal(ZonedDateTime zonedDateTime) throws Exception {
return zonedDateTime.toString();
}
}

0 comments on commit 461ece7

Please sign in to comment.