You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/12/21 10:27:48 UTC
[isis] branch master updated: ISIS-2882: [Demo] add URL samples
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 4b1b260 ISIS-2882: [Demo] add URL samples
4b1b260 is described below
commit 4b1b26010d7134390294f6545d7453ea174a9afa
Author: Andi Huber <ah...@apache.org>
AuthorDate: Tue Dec 21 11:27:42 2021 +0100
ISIS-2882: [Demo] add URL samples
---
.../demoapp/dom/types/javanet/urls/samples/JavaNetUrlSamples.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/examples/demo/domain/src/main/java/demoapp/dom/types/javanet/urls/samples/JavaNetUrlSamples.java b/examples/demo/domain/src/main/java/demoapp/dom/types/javanet/urls/samples/JavaNetUrlSamples.java
index 07205a6..a493f99 100644
--- a/examples/demo/domain/src/main/java/demoapp/dom/types/javanet/urls/samples/JavaNetUrlSamples.java
+++ b/examples/demo/domain/src/main/java/demoapp/dom/types/javanet/urls/samples/JavaNetUrlSamples.java
@@ -23,14 +23,20 @@ import java.util.stream.Stream;
import org.springframework.stereotype.Service;
+import lombok.SneakyThrows;
+
import demoapp.dom.types.Samples;
@Service
public class JavaNetUrlSamples implements Samples<URL> {
+ @SneakyThrows
@Override
public Stream<URL> stream() {
- return Stream.of();
+ return Stream.of(
+ new URL("https://maps.google.com"),
+ new URL("https://en.wikipedia.org/wiki/Internet#Terminology")
+ );
}
}