Skip to content

Commit 97e0ab6

Browse files
iloveeclipseflori-schwa
authored andcommitted
Don't warn about readonly model by default, only during debug
Fixes eclipse-jdt/eclipse.jdt.ui#2315
1 parent 7bb320c commit 97e0ab6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/DeltaProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2022,7 +2022,7 @@ public void resetProjectCaches() {
20222022
* Registers the given delta with this delta processor.
20232023
*/
20242024
public void registerJavaModelDelta(IJavaElementDelta delta) {
2025-
if (JavaModelManager.isReadOnly()) {
2025+
if (VERBOSE && JavaModelManager.isReadOnly()) {
20262026
ILog.get().warn("JavaModel change during read only operation", new IllegalStateException( //$NON-NLS-1$
20272027
"JavaModel modified during 'read only' operation. Consider to report this warning to https://github.com/eclipse-jdt/eclipse.jdt.core/issues. delta=" //$NON-NLS-1$
20282028
+ delta));

0 commit comments

Comments
 (0)