Skip to content

Commit

Permalink
Merge pull request #2676 from hazendaz/master
Browse files Browse the repository at this point in the history
Update new file to paths.of
  • Loading branch information
hazendaz authored Jan 1, 2025
2 parents ef205d8 + 541a871 commit d19b4c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/JNA/src/site/markdown/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WAFFLE - Windows Authentication Framework
[![Coverage Status Sonar](https://sonarcloud.io/api/project_badges/measure?project=Waffle_waffle&metric=coverage)](https://sonarcloud.io/component_measures?id=Waffle_waffle&metric=coverage)
[![Coverage Status Coveralls](https://coveralls.io/repos/Waffle/waffle/badge.svg?branch=master&service=github)](https://coveralls.io/github/Waffle/waffle?branch=master)
[![Maven central](https://maven-badges.herokuapp.com/maven-central/com.github.waffle/waffle-jna/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.waffle/waffle-jna)
[![releases](https://img.shields.io/github/v/release/Waffle/waffle)](https://github.com/Waffle/waffle/releases/tag/waffle-parent-3.4.0)
[![releases](https://img.shields.io/github/v/release/Waffle/waffle)](https://github.com/Waffle/waffle/releases/tag/waffle-parent-3.5.0)
[![MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Project Stats](https://www.openhub.net/p/waffle/widgets/project_thin_badge.gif)](https://www.openhub.net/p/waffle)
[![Github All Releases](https://img.shields.io/github/downloads/Waffle/waffle/total.svg)](https://github.com/Waffle/waffle/)
Expand All @@ -29,7 +29,7 @@ Sites
Essentials
----------

* [Download Version 3.4.0](https://search.maven.org/remotecontent?filepath=com/github/waffle/waffle-distro/3.4.0/waffle-distro-3.4.0-distro.zip)
* [Download Version 3.5.0](https://search.maven.org/remotecontent?filepath=com/github/waffle/waffle-distro/3.5.0/waffle-distro-3.5.0-distro.zip)
* [Waffle in Maven Central](https://search.maven.org/search?q=waffle)
* [Waffle Snapshots](https://oss.sonatype.org/content/repositories/snapshots/com/github/waffle/)
* [Get Waffle To Work in Tomcat, Jetty, WebSphere, etc.](Docs/ServletSingleSignOnSecurityFilter.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Path;

import org.apache.jasper.servlet.JspServlet;
import org.eclipse.jetty.ee10.servlet.ServletHolder;
Expand Down Expand Up @@ -61,7 +62,7 @@ private StartEmbeddedJetty() {
public static void main(final String[] args) throws Exception {
final String path = "../waffle-demo/waffle-filter";

final File dir = new File(path);
final File dir = Path.of(path).toFile();
if (!dir.exists()) {
throw new FileNotFoundException("Can not find webapp: " + dir.getAbsolutePath());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Path;

import org.apache.jasper.servlet.JspServlet;
import org.eclipse.jetty.ee8.servlet.ServletHolder;
Expand Down Expand Up @@ -61,7 +62,7 @@ private StartEmbeddedJetty() {
public static void main(final String[] args) throws Exception {
final String path = "../waffle-demo/waffle-filter";

final File dir = new File(path);
final File dir = Path.of(path).toFile();
if (!dir.exists()) {
throw new FileNotFoundException("Can not find webapp: " + dir.getAbsolutePath());
}
Expand Down

0 comments on commit d19b4c4

Please sign in to comment.