-
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.
Handling of SYNTHETIC and BRIDGE modifiers was added.
- Loading branch information
1 parent
45a808b
commit 571a26d
Showing
3 changed files
with
43 additions
and
1 deletion.
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
21 changes: 21 additions & 0 deletions
21
.../com/tngtech/archunit/core/importer/testexamples/syntheticimport/ClassWithSynthetics.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,21 @@ | ||
package com.tngtech.archunit.core.importer.testexamples.syntheticimport; | ||
|
||
import java.util.Comparator; | ||
|
||
public class ClassWithSynthetics implements Comparator<String> { | ||
public class ClassWithSyntheticField { | ||
} | ||
|
||
public class ClassWithSyntheticMethod { | ||
private String nestedField; | ||
} | ||
|
||
public String getNestedField() { | ||
return new ClassWithSyntheticMethod().nestedField; | ||
} | ||
|
||
@Override | ||
public int compare(String o1, String o2) { | ||
return 0; | ||
} | ||
} |