-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add referenced class object dependencies from and to self
Signed-off-by: Peter Gafert <[email protected]>
- Loading branch information
1 parent
fe72d92
commit 1263ae5
Showing
8 changed files
with
152 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...rc/test/java/com/tngtech/archunit/core/domain/testobjects/DependenciesOnClassObjects.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.tngtech.archunit.core.domain.testobjects; | ||
|
||
import java.io.File; | ||
import java.io.FilterInputStream; | ||
import java.nio.Buffer; | ||
import java.nio.charset.Charset; | ||
import java.nio.file.FileSystem; | ||
import java.nio.file.Path; | ||
import java.util.List; | ||
|
||
import com.google.common.collect.ImmutableList; | ||
|
||
@SuppressWarnings({"FieldMayBeFinal", "unused"}) | ||
public class DependenciesOnClassObjects { | ||
static { | ||
List<Class<?>> referencedClassObjectsInStaticInitializer = ImmutableList.of(FilterInputStream.class, Buffer.class); | ||
} | ||
|
||
List<Class<?>> referencedClassObjectsInConstructor = ImmutableList.<Class<?>>of(File.class, Path.class); | ||
|
||
List<Class<?>> referencedClassObjectsInMethod() { | ||
return ImmutableList.of(FileSystem.class, Charset.class); | ||
} | ||
|
||
public static class MoreDependencies { | ||
Class<?> moreReferencedClassObjectsInMethod() { | ||
return Charset.class; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters