Android Studio – Java: how to check automatically which fields require a volatile modifier?
volatile modifier is required when a variable is read/written by several concurrent Threads. Are there tools that can detect missing volatile modifiers automatically, e.g. in Android Studio? Algorithm: for (Class c:allClasses) { for (Field f:allFields) { List<Method> allMethods = getCallHierarchy(field);…