Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JDK 11 jdk.jdeps.jmod - JDeps Tool
JDK 11 jdk.jdeps.jmod is the JMOD file for JDK 11 JDeps tool,
which can be invoked by the "jdeps" command.
JDK 11 JDeps tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jdeps.jmod.
JDK 11 JDeps tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JDeps tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jdeps.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/tools/jdeprscan/DeprDB.java
/*
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.tools.jdeprscan;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Formatter;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import javax.lang.model.element.ElementKind;
/**
* A database of deprecations (APIs declared to be deprecated),
* loaded from a JDK or from a class library.
*/
public class DeprDB {
/**
* Deprecated types.
* A map from deprecated type names to DeprData values.
* Types include classes, interfaces, enums, and annotation types.
*/
final Map<String, DeprData> types = new HashMap<>();
/**
* Deprecated methods. Key is type name, value is map from method
* signatures in the form "methodname(parms)ret" to DeprData value.
*/
final Map<String, Map<String, DeprData>> methods = new HashMap<>();
/**
* Deprecated fields. Key is type name, value is map from field name
* to forRemoval value.
*/
final Map<String, Map<String, DeprData>> fields = new HashMap<>();
/**
* Set of valid ElementKind strings.
*/
static final Set<String> validElementKinds =
Set.of(Arrays.stream(ElementKind.values())
.map(ElementKind::toString)
.toArray(String[]::new));
private DeprDB() { }
public static List<DeprData> loadFromFile(String filename) throws IOException {
List<DeprData> list = new ArrayList<>();
exit:
try (final BufferedReader br = Files.newBufferedReader(Paths.get(filename))) {
String line = br.readLine();
if (line == null || !line.equals("#jdepr1")) {
System.out.printf("ERROR: invalid first line %s%n", line);
break exit;
}
while ((line = br.readLine()) != null) {
if (line.startsWith("#")) {
continue;
}
List<String> tokens = CSV.split(line);
if (tokens.size() != 5) {
System.out.printf("ERROR: %s%n", line);
continue;
}
// kind,typeName,descOrName,since,forRemoval
String kindStr = tokens.get(0);
String type = tokens.get(1);
String detail = tokens.get(2);
String since = tokens.get(3);
boolean forRemoval = Boolean.parseBoolean(tokens.get(4));
ElementKind kind;
if (validElementKinds.contains(kindStr)) {
kind = ElementKind.valueOf(kindStr);
} else {
System.out.printf("ERROR: invalid element kind %s%n", kindStr);
continue;
}
DeprData data = new DeprData(kind, /*TypeElement*/null, type, detail, since, forRemoval);
list.add(data);
}
}
return list;
}
public static DeprDB loadFromList(List<DeprData> deprList) {
DeprDB db = new DeprDB();
for (DeprData dd : deprList) {
switch (dd.kind) {
case CLASS:
case INTERFACE:
case ENUM:
case ANNOTATION_TYPE:
db.types.put(dd.typeName, dd);
break;
case METHOD:
case CONSTRUCTOR:
db.methods.computeIfAbsent(dd.typeName, k -> new HashMap<>())
.put(dd.nameSig, dd);
break;
case ENUM_CONSTANT:
case FIELD:
db.fields.computeIfAbsent(dd.typeName, k -> new HashMap<>())
.put(dd.nameSig, dd);
break;
}
}
return db;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
Formatter f = new Formatter(sb, Locale.US);
f.format("=== Types ===%n");
f.format("%s%n", types.toString());
f.format("=== Methods ===%n");
f.format("%s%n", methods.toString());
f.format("=== Fields ===%n");
f.format("%s%n", fields.toString());
return sb.toString();
}
public DeprData getTypeDeprecated(String typeName) {
return types.get(typeName);
}
public DeprData getMethodDeprecated(String typeName, String methodName, String type) {
Map<String, DeprData> m = methods.get(typeName);
if (m == null) {
return null;
}
return m.get(methodName + type);
}
public DeprData getFieldDeprecated(String typeName, String fieldName) {
Map<String, DeprData> f = fields.get(typeName);
if (f == null) {
return null;
}
return f.get(fieldName);
}
}
⏎ com/sun/tools/jdeprscan/DeprDB.java
Or download all of them as a single archive file:
File name: jdk.jdeps-11.0.1-src.zip File size: 244145 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jdi.jmod - JDI Tool
2020-07-07, ≈56🔥, 0💬
Popular Posts:
Where to get the Java source code for Connector/J 8.0 User Impl module? Java source code files for C...
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
What is ojdbc.jar - JDBC Driver for Oracle? ojdbc.jar is a JDBC driver from Oracle that provides dat...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...