Skip to content

Commit

Permalink
fixes: #362 Locale with JsonbNumberFormat
Browse files Browse the repository at this point in the history
improvements in wording, copyright updated and unnecessary import removed.
  • Loading branch information
struberg committed Oct 28, 2024
1 parent 16b1911 commit 272d158
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand All @@ -20,7 +20,6 @@
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.Locale;

/**
* <p>Annotation provides way how to set custom number format to field or JavaBean property.</p>
Expand All @@ -37,9 +36,9 @@
* <li> package </li>
* </ul>
*
* <p>Note that even when specifying a pattern format your JSON is depending on the Locale of the JVM you run on.
* For best portability it is recommended to either specify the {@link #locale()} or define a default Locale via
* {@link jakarta.json.bind.JsonbConfig#withLocale(Locale)}.
* <p>Note that even when specifying a pattern, the format of the JSON value also depends on the Locale.
* For best portability it is recommended to either specify the {@link #locale()} or define a default Locale
* for JSON-B via {@link jakarta.json.bind.JsonbConfig#withLocale(java.util.Locale)}.
* </p>
*
* @since JSON Binding 1.0
Expand Down

0 comments on commit 272d158

Please sign in to comment.