Skip to content

Commit aedc25b

Browse files
committed
feat: jdk18
1 parent 2220a54 commit aedc25b

File tree

157 files changed

+24777
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+24777
-1
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,19 @@
156156
- 414:Vector API (Second Incubator) / 矢量 API(二次孵化)
157157
- 415:Context-Specific Deserialization Filters / 特定于上下文的反序列化过滤器
158158

159+
### [JDK 18](java-18)
160+
161+
---
162+
- JEP 400 默认为 UTF-8
163+
- [JEP 408 简单的网络服务器](java-18/src/main/java/com/di1shuai/webserver)
164+
- JEP 413 Java API 文档中的代码片段
165+
- JEP 416 使用方法句柄重新实现核心反射
166+
- JEP 417 Vector API(三次孵化)
167+
- [JEP 418 互联网地址解析 SPI](java-18/src/main/java/com/di1shuai/internet/InternetCase.java)
168+
- JEP 419 Foreign Function & Memory API (二次孵化)
169+
- JEP 420 switch 模式匹配(二次预览)
170+
- JEP 421 弃用完成删除
171+
159172

160173
### [JDK 19](java-19)
161174

java-18/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### [JDK 18](java-18)
2+
3+
---
4+
- JEP 400 默认为 UTF-8
5+
- [JEP 408 简单的网络服务器](src/main/java/com/di1shuai/webserver)
6+
- JEP 413 Java API 文档中的代码片段
7+
- JEP 416 使用方法句柄重新实现核心反射
8+
- JEP 417 Vector API(三次孵化)
9+
- [JEP 418 互联网地址解析 SPI](src/main/java/com/di1shuai/internet/InternetCase.java)
10+
- JEP 419 Foreign Function & Memory API (二次孵化)
11+
- JEP 420 switch 模式匹配(二次预览)
12+
- JEP 421 弃用完成删除

java-18/pom.xml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>com.di1shuai</groupId>
8+
<artifactId>java-versions</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
</parent>
11+
12+
<artifactId>java-18</artifactId>
13+
14+
<properties>
15+
<maven.compiler.source>18</maven.compiler.source>
16+
<maven.compiler.target>18</maven.compiler.target>
17+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18+
</properties>
19+
20+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.di1shuai;
2+
3+
public class Main {
4+
public static void main(String[] args) {
5+
System.out.println("Hello world!");
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.di1shuai.internet;
2+
3+
import java.net.InetAddress;
4+
import java.net.UnknownHostException;
5+
6+
/**
7+
* @author shea
8+
* @since 2022/11/24
9+
*/
10+
public class InternetCase {
11+
12+
public static void main(String[] args) throws UnknownHostException {
13+
InetAddress inetAddress = InetAddress.getByName("www.baidu.com");
14+
System.out.println(inetAddress.getHostAddress());
15+
// 输出
16+
// 14.215.177.38
17+
}
18+
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```
2+
jwebserver -p 8888
3+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5+
<meta charset="UTF-8">
6+
<title>Urku Portfolio :: Pixeden</title>
7+
<link rel="icon" type="image/svg+xml" href="assets/img/urku-ico.svg">
8+
<link rel="stylesheet" href="assets/css/aurora-pack.min.css">
9+
<link rel="stylesheet" href="assets/css/aurora-theme-base.min.css">
10+
<link rel="stylesheet" href="assets/css/urku.css">
11+
</head>
12+
<body class="top-fixed">
13+
<header class="ae-container-fluid ae-container-fluid--full rk-header ">
14+
<input type="checkbox" id="mobile-menu" class="rk-mobile-menu">
15+
<label for="mobile-menu">
16+
<svg>
17+
<use xlink:href="assets/img/symbols.svg#bar"></use>
18+
</svg>
19+
<svg>
20+
<use xlink:href="assets/img/symbols.svg#bar"></use>
21+
</svg>
22+
<svg>
23+
<use xlink:href="assets/img/symbols.svg#bar"></use>
24+
</svg>
25+
</label>
26+
<div class="ae-container-fluid rk-topbar">
27+
<h1 class="rk-logo"><a href="index.html">urku portfolio<sup>tm</sup></a></h1>
28+
<nav class="rk-navigation">
29+
<ul class="rk-menu">
30+
<li class="rk-menu__item"><a href="index.html" class="rk-menu__link">Home</a>
31+
</li>
32+
<li class="rk-menu__item"><a href="portfolio.html" class="rk-menu__link">Portfolio</a>
33+
<nav class="rk-menu__sub">
34+
<ul class="rk-container">
35+
<li class="rk-menu__item"><a href="portfolio.html" class="rk-menu__link">Flex</a></li>
36+
<li class="rk-menu__item"><a href="portfolio-alt.html" class="rk-menu__link">Switch</a></li>
37+
<li class="rk-menu__item"><a href="portfolio-raw.html" class="rk-menu__link">Static</a></li>
38+
<li class="rk-menu__item"><a href="portfolio-masonry.html" class="rk-menu__link">Masonry</a></li>
39+
</ul>
40+
</nav>
41+
</li>
42+
<li class="rk-menu__item"><a href="blog.html" class="rk-menu__link">Blog</a>
43+
</li>
44+
<li class="active rk-menu__item"><a href="#0" class="rk-menu__link">Pages</a>
45+
<nav class="rk-menu__sub">
46+
<ul class="rk-container">
47+
<li class="rk-menu__item"><a href="about.html" class="rk-menu__link">About</a></li>
48+
<li class="rk-menu__item"><a href="documentation.html" class="rk-menu__link">Documentation</a></li>
49+
<li class="rk-menu__item"><a href="design-styles.html" class="rk-menu__link">Design Styles</a></li>
50+
</ul>
51+
</nav>
52+
</li>
53+
<li class="rk-menu__item"><a href="contact.html" class="rk-menu__link">Contact Us</a>
54+
</li>
55+
</ul>
56+
<form class="rk-search">
57+
<input type="text" placeholder="Search" id="urku-search" class="rk-search-field">
58+
<label for="urku-search">
59+
<svg>
60+
<use xlink:href="assets/img/symbols.svg#icon-search"></use>
61+
</svg>
62+
</label>
63+
</form>
64+
</nav>
65+
</div>
66+
</header>
67+
<div class="ae-container-fluid ae-container-fluid--inner rk-main">
68+
<div class="ae-grid au-xs-ta-center au-mb-4">
69+
<div class="ae-grid__item item-lg-4 ae-kappa au-mb-3"><img src="assets/img/team-1.jpg" alt="" class="au-mb-3">
70+
<h5 class="ae-u-bolder au-mt-2">Robert T. Williams</h5>
71+
<p class="ae-u-bolder au-mb-3">Graphic Designer</p>
72+
<p class="au-lg-ta-left au-mb-3 au-pl-4 au-pr-4">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor.</p><a href="#0" class="ae-u-bolder au-underline">@robertwilliams</a>
73+
</div>
74+
<div class="ae-grid__item item-lg-4 ae-kappa au-mb-3"><img src="assets/img/team-2.jpg" alt="" class="au-mb-3">
75+
<h5 class="ae-u-bolder au-mt-2">Angelina B. Widow</h5>
76+
<p class="ae-u-bolder au-mb-3">Founder / CEO</p>
77+
<p class="au-lg-ta-left au-mb-3 au-pl-4 au-pr-4">Ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit.</p><a href="#0" class="ae-u-bolder au-underline">@angelinawidow</a>
78+
</div>
79+
<div class="ae-grid__item item-lg-4 ae-kappa au-mb-3"><img src="assets/img/team-3.jpg" alt="" class="au-mb-3">
80+
<h5 class="ae-u-bolder au-mt-2">Patrick Anderson</h5>
81+
<p class="ae-u-bolder au-mb-3">Art Director</p>
82+
<p class="au-lg-ta-left au-mb-3 au-pl-4 au-pr-4">Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><a href="#0" class="ae-u-bolder au-underline">@patrickanderson</a>
83+
</div>
84+
</div>
85+
<div class="ae-grid au-pt-2">
86+
<div class="ae-grid__item item-lg-8 item-lg--offset-2">
87+
<h4 class="ae-u-bolder">Title example</h4>
88+
<p>Totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur.</p>
89+
</div>
90+
</div>
91+
<div class="ae-grid ae-grid--alt au-xs-ptp-1">
92+
<div class="ae-grid__item--alt item-lg-4">
93+
<h6 class="ae-u-boldest">About Us</h6>
94+
<p class="au-lh-3">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p>
95+
</div>
96+
<div class="ae-grid__item--alt item-lg-4">
97+
<h6 class="ae-u-boldest">Our Mission</h6>
98+
<p class="au-lh-3">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. <br>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
99+
</div>
100+
<div class="ae-grid__item--alt item-lg-4">
101+
<h6 class="ae-u-boldest">Our Clients</h6>
102+
<p class="au-lh-3">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. </p>
103+
<p class="au-lh-3">Nemo enim ipsam voluptatem quia voluptas</p>
104+
</div>
105+
</div>
106+
<p class="au-flex au-pt-4 group-buttons"><a href="portfolio.html" class="au-mt-4 arrow-button arrow-button--right arrow-button--out">View Our Portfolio<span class="arrow-cont">
107+
<svg>
108+
<use xlink:href="assets/img/symbols.svg#arrow"></use>
109+
</svg></span></a></p>
110+
</div>
111+
<footer class="ae-container-fluid rk-footer ">
112+
<div class="ae-grid ae-grid--collapse">
113+
<div class="ae-grid__item item-lg-4 au-xs-ta-center au-lg-ta-left">
114+
<ul class="rk-menu rk-footer-menu">
115+
<li class="rk-menu__item"><a href="about.html" class="rk-menu__link">About</a>
116+
</li>
117+
<li class="rk-menu__item"><a href="documentation.html" class="rk-menu__link">Docs</a>
118+
</li>
119+
<li class="rk-menu__item"><a href="contact.html" class="rk-menu__link">Contact</a>
120+
</li>
121+
</ul>
122+
<p class="rk-footer__text rk-footer__copy "> <span class="ae-u-bold">© </span><span class="ae-u-bolder">2015 URKU PORTFOLIO </span>All Right Reserved.</p>
123+
</div>
124+
<div class="ae-grid__item item-lg-4 au-xs-ta-center"><a href="#0" class="rk-social-btn ">
125+
<svg>
126+
<use xlink:href="assets/img/symbols.svg#icon-facebook"></use>
127+
</svg></a><a href="#0" class="rk-social-btn ">
128+
<svg>
129+
<use xlink:href="assets/img/symbols.svg#icon-twitter"></use>
130+
</svg></a><a href="#0" class="rk-social-btn ">
131+
<svg>
132+
<use xlink:href="assets/img/symbols.svg#icon-pinterest"></use>
133+
</svg></a><a href="#0" class="rk-social-btn ">
134+
<svg>
135+
<use xlink:href="assets/img/symbols.svg#icon-tumblr"></use>
136+
</svg></a></div>
137+
<div class="ae-grid__item item-lg-4 au-xs-ta-center au-lg-ta-right">
138+
<p class="rk-footer__text rk-footer__contact "> <span class="ae-u-bold">Email: </span><span class="ae-u-bolder"> <a href="#0" class="rk-dark-color ">[email protected] </a></span></p>
139+
<p class="rk-footer__text rk-footer__by">Theme by <a href="http://pixeden.com" class="ae-u-bolder">Pixeden.</a></p>
140+
</div>
141+
</div>
142+
</footer>
143+
<script src="assets/js/svg4everybody.min.js"></script>
144+
<script>svg4everybody();</script>
145+
</body>
146+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
/* * * * * * * * * * * * * * * * * * * * *\
2+
aurora-grid v1.0.0
3+
Grid system for Aurora Kit
4+
(c) 2015 Lionel <[email protected]> (http://pixeden.com)
5+
https://github.com/aurora-kit/aurora-grid
6+
Licensed under MIT
7+
\* * * * * * * * * * * * * * * * * * * * */
8+
.ae-container {
9+
outline: 1px solid #f42853 !important;
10+
outline-offset: 1px;
11+
}
12+
13+
.ae-grid {
14+
outline: 1px solid #4b527e !important;
15+
outline-offset: -1px;
16+
}
17+
18+
.ae-grid__item {
19+
outline: 1px solid #b8b9b1 !important;
20+
outline-offset: -2px;
21+
}
22+
.ae-grid__item:hover {
23+
background-color: #b8b9b1 !important;
24+
}
25+
.ae-grid__item .ae-grid__item:hover {
26+
background-color: #a0a196 !important;
27+
}
28+
.ae-grid__item .ae-grid__item .ae-grid__item:hover {
29+
background-color: #87897b !important;
30+
}
31+
32+
body:after {
33+
background-color: rgba(255, 255, 255, .7);
34+
color: #4b527e;
35+
font: 16px/1.5 sans-serif;
36+
padding: 5px 8px;
37+
pointer-events: none;
38+
position: fixed;
39+
z-index: 900;
40+
content: "xs: 0";
41+
top: 0;
42+
right: 0;
43+
}
44+
45+
@media (min-width: 40em) {
46+
body:after {
47+
background-color: rgba(255, 255, 255, .7);
48+
color: #4b527e;
49+
font: 16px/1.5 sans-serif;
50+
padding: 5px 8px;
51+
pointer-events: none;
52+
position: fixed;
53+
z-index: 900;
54+
content: "sm: 40em";
55+
top: 0;
56+
right: 0;
57+
}
58+
}
59+
60+
@media (min-width: 52em) {
61+
body:after {
62+
background-color: rgba(255, 255, 255, .7);
63+
color: #4b527e;
64+
font: 16px/1.5 sans-serif;
65+
padding: 5px 8px;
66+
pointer-events: none;
67+
position: fixed;
68+
z-index: 900;
69+
content: "md: 52em";
70+
top: 0;
71+
right: 0;
72+
}
73+
}
74+
75+
@media (min-width: 64em) {
76+
body:after {
77+
background-color: rgba(255, 255, 255, .7);
78+
color: #4b527e;
79+
font: 16px/1.5 sans-serif;
80+
padding: 5px 8px;
81+
pointer-events: none;
82+
position: fixed;
83+
z-index: 900;
84+
content: "lg: 64em";
85+
top: 0;
86+
right: 0;
87+
}
88+
}
89+
90+
@media (min-width: 75em) {
91+
body:after {
92+
background-color: rgba(255, 255, 255, .7);
93+
color: #4b527e;
94+
font: 16px/1.5 sans-serif;
95+
padding: 5px 8px;
96+
pointer-events: none;
97+
position: fixed;
98+
z-index: 900;
99+
content: "xl: 75em";
100+
top: 0;
101+
right: 0;
102+
}
103+
}

java-18/src/main/java/com/di1shuai/webserver/assets/css/_ae/aurora-grid/dist/aurora-grid-debug.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)