FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bytecode-viewer/src/main/java/jd/cli/util/VersionUtil.java at master · ynjava/bytecode-viewer · GitHub
ynjava
bytecode-viewer
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
bytecode-viewer
/
src
/
main
/
java
/
jd
/
cli
/
util
/
VersionUtil.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (30 loc) · 624 Bytes
Breadcrumbs
bytecode-viewer
/
src
/
main
/
java
/
jd
/
cli
/
util
/
VersionUtil.java
Copy path
File metadata and controls
34 lines (30 loc) · 624 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package
jd
.
cli
.
util
;
public
class
VersionUtil
{
private
VersionUtil
() {
}
public
static
String
getJDKVersion
(
int
majorVersion
,
int
minorVersion
)
{
StringBuffer
sb
=
new
StringBuffer
(
20
);
if
(
majorVersion
>=
49
)
{
sb
.
append
(
majorVersion
- (
49
-
5
));
sb
.
append
(
" ("
);
sb
.
append
(
majorVersion
);
sb
.
append
(
'.'
);
sb
.
append
(
minorVersion
);
sb
.
append
(
')'
);
}
else
if
(
majorVersion
>=
45
)
{
sb
.
append
(
"1."
);
sb
.
append
(
majorVersion
- (
45
-
1
));
sb
.
append
(
" ("
);
sb
.
append
(
majorVersion
);
sb
.
append
(
'.'
);
sb
.
append
(
minorVersion
);
sb
.
append
(
')'
);
}
return
sb
.
toString
();
}
}
Back
|
FazBrowse Home
|
New Git URL