Skip to content

Commit

Permalink
Link to Java 17 documentation (#2119)
Browse files Browse the repository at this point in the history
This prevents issues because older documentation may not apply to Java 17.

Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn authored Aug 21, 2023
1 parent bdb3707 commit 98a6d31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion developers/guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ See [Default libraries](#default-libraries) for more details.
1. Creation of threads must be avoided.
Instead, resort into using existing schedulers which use pre-configured thread pools.
If there is no suitable scheduler available, start a discussion in the forum about it rather than creating a thread by yourself.
For periodically executed jobs that do not require a fixed rate [scheduleWithFixedDelay](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ScheduledExecutorService.html#scheduleWithFixedDelay(java.lang.Runnable,long,long,java.util.concurrent.TimeUnit)) should be preferred over [scheduleAtFixedRate](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ScheduledExecutorService.html#scheduleAtFixedRate(java.lang.Runnable,long,long,java.util.concurrent.TimeUnit)).
For periodically executed jobs that do not require a fixed rate [scheduleWithFixedDelay](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/ScheduledExecutorService.html#scheduleWithFixedDelay(java.lang.Runnable,long,long,java.util.concurrent.TimeUnit)) should be preferred over [scheduleAtFixedRate](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/ScheduledExecutorService.html#scheduleAtFixedRate(java.lang.Runnable,long,long,java.util.concurrent.TimeUnit)).
1. Bundles need to cleanly start and stop without throwing exceptions or malfunctioning.
This can be tested by manually starting and stopping the bundle from the console (```stop <bundle-id>``` resp. ```start <bundle-id>```).
1. Bundles must not require any substantial CPU time.
Expand Down
2 changes: 1 addition & 1 deletion developers/osgi/osgi.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ More details about the OSGi architecture can be found at <https://www.osgi.org/d
Modules (called **bundles**) are the smallest unit of modularization.
Technically a bundle is a JAR file with additional meta information.
This information is stored in file called [**manifest**](#important-definitions) file.
The manifest file is part of the standard [JAR specification](https://docs.oracle.com/en/java/javase/11/docs/specs/jar/jar.html#jar-manifest), but OSGi adds additional metadata to it in form of specific headers.
The manifest file is part of the standard [JAR specification](https://docs.oracle.com/en/java/javase/17/docs/specs/jar/jar.html#jar-manifest), but OSGi adds additional metadata to it in form of specific headers.
The _Bundle-SymbolicName_ and the _Bundle-Version_ headers uniquely identify a bundle.
In OSGi is allowed to have **bundles with same name, but different version running at the same time.**

Expand Down
2 changes: 1 addition & 1 deletion ui/sitemaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ Adds a time-series chart object for the display of logged data.
- `forceasitem` is used to show the value of a `Group` instead of showing a graph for each member (which is the default).

- `yAxisDecimalPattern` is used to format the values on the y axis.
It accepts [DecimalFormat](https://docs.oracle.com/javase/7/docs/api/java/text/DecimalFormat.html).
It accepts [DecimalFormat](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/text/DecimalFormat.html).
For example with `#.##` a number has to decimals.

Visit [Charts](https://github.com/openhab/openhab/wiki/Charts) in the Wiki for examples.
Expand Down

0 comments on commit 98a6d31

Please sign in to comment.