mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
library.md: Clean up code snippet
This commit is contained in:
parent
def244146b
commit
b1630619ef
@ -26,7 +26,7 @@ Package [`com.intellij.openapi.roots.libraries`](%gh-ic%/platform/projectModel-a
|
||||
To get the list of libraries that a module depends on, use `OrderEnumerator.forEachLibrary` as follows.
|
||||
|
||||
```java
|
||||
final List<String> libraryNames = new ArrayList<String>();
|
||||
List<String> libraryNames = new ArrayList<>();
|
||||
ModuleRootManager.getInstance(module).orderEntries().forEachLibrary(library -> {
|
||||
libraryNames.add(library.getName());
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user