Manfred Hanke

Results 76 comments of Manfred Hanke

As a workaround, you can also use a user-defined condition like this: static imports ```java import static com.tngtech.archunit.core.domain.JavaClass.Predicates.resideInAPackage; import static com.tngtech.archunit.lang.SimpleConditionEvent.satisfied; import static com.tngtech.archunit.lang.conditions.ArchConditions.dependOnClassesThat; ``` ```java ArchCondition dependOnClassesInPackage(String packageIdentifier) {...

Exit code 137 often means `OutOfMemoryError`. Can you monitor the available resources during the multithreaded Maven build?

First of all, thanks for bringing up the idea – and sorry for the late feedback! 🙈 I just had a closer look at your diagrams. Do I understand correctly...

The synthetic class `com.app.archunittest.service.DummyService$1` doesn't have a simple name (but `""`). Technically, you could use `orShould().haveNameMatching(".*\\.Service\\$1")`, but you probably want to use the solution `classes().that().doNotHaveModifier(JavaModifier.SYNTHETIC)` from https://github.com/TNG/ArchUnit/issues/1011#issuecomment-1336332226.

@thugec, can you provide a minimal example of `MyClass` and its subclasses, and which violations you want to catch? I'm sorry, but I didn't properly understand what you want to...

1. My understanding was that for ```java JavaClasses classes = new ClassFileImporter().importClasses(SomeClass.class, Map.class, String.class, Serializable.class); JavaMethod method = classes.get(SomeClass.class).getMethod("method", ExampleClass.class); JavaType returnType = method.getReturnType(); ``` the (instance!) method `returnType.getRawTypesInvolvedInSignature()` should...